/* Panjaab Orders storefront. Uses the theme's colours when present. */
.pjo-shop, .pjo-grid, .pjo-checkout, .pjo-drawer {
	--o-red: var(--pj-red, #d7131b);
	--o-red-dark: var(--pj-red-dark, #b30f16);
	--o-green: var(--pj-green, #00472b);
	--o-yellow: var(--pj-yellow, #ffe500);
	--o-cream: var(--pj-cream, #fff8e6);
	--o-sand: var(--pj-sand, #e5dcc3);
	--o-ink: var(--pj-ink, #1a1a1a);
	--o-display: var(--pj-display, "Oswald", sans-serif);
	--o-radius: 16px;
}
.pjo-small { font-size: 13px; color: #555; margin: 8px 0 0; }
.pjo-center { text-align: center; }
.pjo-empty { color: #555; }
.pjo-notice { background: var(--o-yellow, #ffe500); color: #1a1a1a; border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.pjo-alert { background: #fde8e8; color: #8a0d12; border: 2px solid #d7131b; border-radius: 12px; padding: 12px 16px; font-weight: 600; margin: 0 0 12px; }
.pjo-hp { position: absolute !important; left: -9999px !important; }
.pjo-loading { color: #555; }

/* Buttons */
.pjo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.pjo-btn--primary { background: var(--o-red); color: #fff; }
.pjo-btn--primary:hover { background: var(--o-red-dark); color: #fff; }
.pjo-btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.pjo-btn--ghost { border-color: var(--o-green); color: var(--o-green); background: transparent; }
.pjo-btn--ghost:hover { background: var(--o-green); color: var(--o-yellow); }
.pjo-btn--block { display: flex; width: 100%; }
.pjo-btn--big { min-height: 56px; font-size: 17px; font-weight: 800; }

/* Shop bar + pills */
.pjo-shop__bar { margin: 0 0 14px; }
.pjo-filter { width: 100%; max-width: 420px; height: 46px; border: 2px solid var(--o-sand); border-radius: 23px; padding: 0 18px; font: inherit; background: #fff; }
.pjo-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pjo-pill { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 2px solid var(--o-sand); background: #fff; color: var(--o-ink); font: inherit; font-weight: 600; cursor: pointer; }
.pjo-pill[aria-pressed="true"], .pjo-pill:hover { background: var(--o-red); border-color: var(--o-red); color: #fff; }

/* Product grid */
.pjo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pjo-card { background: #fff; border-radius: var(--o-radius); overflow: hidden; display: flex; flex-direction: column; }
.pjo-card[hidden] { display: none; }
.pjo-card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--o-cream); }
.pjo-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pjo-card__noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--o-display); font-size: 64px; color: var(--o-sand); }
.pjo-card.is-out .pjo-card__img img { filter: grayscale(1); opacity: .6; }
.pjo-badge { position: absolute; top: 10px; left: 10px; background: var(--o-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.pjo-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pjo-card__cat { font-size: 11px; font-weight: 700; color: var(--o-green); text-transform: uppercase; letter-spacing: 1px; }
.pjo-card__name { margin: 0; font-size: 17px; line-height: 1.25; font-family: inherit; }
.pjo-card__name a { color: var(--o-ink); text-decoration: none; }
.pjo-card__name a:hover { color: var(--o-red); }
.pjo-card__unit { font-size: 13px; color: #555; }
.pjo-card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pjo-price { font-family: var(--o-display); font-size: 21px; font-weight: 700; }
.pjo-add { min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--o-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s; }
.pjo-add:hover { background: var(--o-red-dark); }
.pjo-add.is-added { background: var(--o-green); color: var(--o-yellow); }
.pjo-add:disabled { background: #ddd; color: #555; cursor: not-allowed; }

/* Cart lines */
.pjo-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0e9d6; }
.pjo-line img, .pjo-line__noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--o-cream); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #999; }
.pjo-line__info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.pjo-line__info span { color: #555; font-size: 13px; }
.pjo-line__info .pjo-line__price { color: var(--o-ink); font-weight: 600; }
.pjo-line__out { color: #b00 !important; font-weight: 700; }
.pjo-qty { display: flex; align-items: center; gap: 6px; }
.pjo-qty button { width: 36px; height: 36px; border-radius: 18px; border: 2px solid var(--o-green); background: #fff; color: var(--o-green); font-size: 18px; font-weight: 800; cursor: pointer; line-height: 1; }
.pjo-qty button:last-child { background: var(--o-green); color: var(--o-yellow); }
.pjo-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.pjo-row { display: flex; justify-content: space-between; align-items: center; }
.pjo-total { font-size: 19px; padding-top: 12px; }

/* Drawer */
.pjo-drawer { position: fixed; inset: 0; z-index: 900; }
.pjo-drawer[hidden] { display: none; }
.pjo-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 30, 18, .5); opacity: 0; transition: opacity .5s ease; }
.pjo-drawer.is-open .pjo-drawer__backdrop { opacity: 1; }
.pjo-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(0, 0, 0, .2); transform: translateX(100%); transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.pjo-drawer.is-open .pjo-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .pjo-drawer__panel, .pjo-drawer__backdrop { transition: none; } }
.pjo-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--o-green); color: var(--o-yellow); }
.pjo-drawer__head h2 { margin: 0; font-family: var(--o-display); font-size: 22px; text-transform: uppercase; }
.pjo-icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 18px; cursor: pointer; }
.pjo-drawer__body { flex: 1; overflow-y: auto; padding: 4px 20px 16px; }
.pjo-drawer__body .pjo-btn { margin-top: 8px; }
.pjo-drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--o-sand); }
.pjo-drawer__foot .pjo-btn { margin-top: 12px; }
body.pjo-lock { overflow: hidden; }

/* Toast */
.pjo-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 950; background: var(--pj-ink, #1a1a1a); color: #fff; padding: 12px 20px; border-radius: 24px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }
.pjo-toast[hidden] { display: none; }

/* Checkout */
.pjo-checkout__grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pjo-form { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pjo-summary { flex: 1 1 320px; max-width: 420px; position: sticky; top: 20px; }
.pjo-box { background: #fff; border-radius: var(--o-radius); padding: 22px; }
.pjo-box h2 { margin: 0 0 6px; font-family: var(--o-display); font-size: 22px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.pjo-step { width: 30px; height: 30px; border-radius: 15px; background: var(--o-red); color: #fff; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.pjo-days, .pjo-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pjo-chip { min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 2px solid var(--o-sand); background: #fff; color: var(--o-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pjo-chip--day { display: flex; flex-direction: column; align-items: center; min-width: 76px; line-height: 1.2; }
.pjo-chip--day span { font-weight: 500; font-size: 12px; }
.pjo-chip[aria-checked="true"] { background: var(--o-green); border-color: var(--o-green); color: var(--o-yellow); }
.pjo-times .pjo-chip[aria-checked="true"] { background: var(--o-yellow); border-color: var(--o-ink); color: var(--o-ink); }
.pjo-chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pjo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pjo-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.pjo-fields .pjo-full { grid-column: 1 / -1; }
.pjo-fields input, .pjo-fields textarea { min-height: 48px; border: 2px solid var(--o-sand); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 400; background: #fff; }
.pjo-fields input:focus, .pjo-fields textarea:focus { border-color: var(--o-green); outline: none; box-shadow: 0 0 0 3px rgba(0, 71, 43, .15); }

/* Done */
.pjo-done { max-width: 640px; margin: 0 auto; text-align: center; }
.pjo-done__icon { width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 44px; background: var(--o-green); color: var(--o-yellow); font-size: 44px; display: flex; align-items: center; justify-content: center; }
.pjo-done h2 { font-family: var(--o-display); font-size: clamp(32px, 5vw, 46px); text-transform: uppercase; margin: 0 0 8px; }
.pjo-done__facts { background: #fff; border-radius: var(--o-radius); border-top: 6px solid var(--o-red); padding: 22px; text-align: left; display: grid; gap: 12px; margin: 24px 0 12px; }
.pjo-done__facts div { display: flex; justify-content: space-between; gap: 16px; }
.pjo-done__facts dt { font-weight: 700; }
.pjo-done__facts dd { margin: 0; text-align: right; }
.pjo-done__num { font-family: var(--o-display); font-size: 24px; color: var(--o-red); }
.pjo-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

@media (max-width: 640px) {
	.pjo-fields { grid-template-columns: 1fr; }
	.pjo-summary { position: static; max-width: none; }
	.pjo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pjo-card__body { padding: 10px 10px 12px; }
	.pjo-card__name { font-size: 15px; }
	.pjo-price { font-size: 18px; }
	.pjo-card__foot { flex-direction: column; align-items: stretch; }
	.pjo-add { width: 100%; }
	.pjo-chip--day { min-width: 64px; }
}

/* Contact page */
.pjo-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pjo-contact__lead { margin: 0 0 24px; font-size: 18px; color: #555; }
.pjo-contact__facts { margin: 0; }
.pjo-contact__facts > div { padding: 14px 0; border-top: 1px solid var(--o-sand); }
.pjo-contact__facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b665d; }
.pjo-contact__facts dd { margin: 4px 0 0; }
.pjo-contact__form .pjo-fields { margin-top: 0; }
.pjo-contact__form .pjo-btn { margin-top: 16px; }
.pjo-contact__form textarea { resize: vertical; }
.pjo-contact__ok { padding: 28px; background: #fff; border: 1px solid var(--o-sand); }
.pjo-contact__ok:focus { outline: none; }
.pjo-contact__ok-title { font-family: var(--o-display); font-size: 28px; margin: 0 0 6px; }
@media (max-width: 760px) { .pjo-contact { grid-template-columns: 1fr; } .pjo-contact__form .pjo-btn { width: 100%; } }
.pjo-contact__form [hidden] { display: none !important; }
