/* Unigrano theme. Values follow the design reference (Brand, Home, Category, Product boards). */

:root {
	--ug-bg: #FAFAF5;
	--ug-surface: #FFFFFF;
	--ug-ink: #1E2214;
	--ug-ink-on-brand: #1E2610;
	--ug-body: #3A4126;
	--ug-muted: #5C6150;
	--ug-line: #E6E9D8;
	--ug-input: #DCE0CA;
	--ug-brand: #C4D47E;
	--ug-olive: #9DB04A;
	--ug-olive-strong: #7E9334;
	--ug-tint: #EEF2DC;
	--ug-tint-2: #F3F5E8;
	--ug-deep: #3E4C14;
	--ug-accent-text: #5E7420;
	--ug-forest: #232B0C;
	--ug-forest-line: #3A4519;
	--ug-on-forest: #DDE3C6;
	--ug-on-forest-muted: #B9C1A0;
	--ug-mustard: #F0B83A;
	--ug-mustard-ink: #2A1E05;
	--ug-cream: #FBF1D9;
	--ug-amber-text: #8A5A0B;
	--ug-img: #F4F5F0;
	--ug-veg: #3F8A3A;
	--ug-brand-line: #3F7A2E;
	--ug-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ug-bg); color: var(--ug-ink); font-family: var(--ug-font); font-size: 14px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--ug-deep); }
a:hover { color: var(--ug-forest); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ug-olive); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ug-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ug-forest); color: #fff; padding: 10px 16px; border-radius: 10px; }
.ug-skip:focus { left: 16px; }

.ug-wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Buttons */
.ug-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer; transition: filter .15s; }
.ug-btn:hover { filter: brightness(.96); }
.ug-btn--primary, .ug-btn--add { background: var(--ug-brand); color: var(--ug-ink-on-brand); }
.ug-btn--primary:hover, .ug-btn--add:hover { color: var(--ug-ink-on-brand); }
.ug-btn--dark { background: var(--ug-forest); color: #fff; font-weight: 700; padding: 13px 22px; }
.ug-btn--dark:hover { color: #fff; }
.ug-btn--mustard { background: var(--ug-mustard); color: var(--ug-mustard-ink); }
.ug-btn--mustard:hover { color: var(--ug-mustard-ink); }
.ug-btn--outline { background: var(--ug-surface); color: var(--ug-deep); border: 1.5px solid var(--ug-deep); font-weight: 700; }
.ug-btn--danger { background: #D92D20; color: #fff; }
.ug-btn--danger:hover { color: #fff; }
.ug-btn--ghost { background: transparent; color: var(--ug-deep); font-weight: 700; }
.ug-btn--muted { background: var(--ug-tint-2); color: var(--ug-muted); font-weight: 700; font-size: 11px; cursor: default; padding: 0 12px; min-height: 40px; border-radius: 10px; }
.ug-btn--add { min-height: 40px; padding: 0 20px; border-radius: 10px; font-size: 11.5px; }
.ug-btn--add[hidden], [data-ug-add][hidden] { display: none; }
/* "Add" and the stepper share one cell, so swapping them never changes the size or layout. */
.ug-buybox { display: inline-grid; flex: none; }
.ug-buybox > * { grid-area: 1 / 1; }
.ug-buybox > .ug-stepper[hidden], .ug-buybox > [data-ug-add][hidden] { display: inline-flex; visibility: hidden; pointer-events: none; }
.ug-buybox .ug-stepper { min-height: 40px; min-width: 112px; align-items: stretch; }
.ug-buybox .ug-stepper button { width: 40px; height: auto; flex: none; }
.ug-buybox .ug-stepper__qty { flex: 1; display: flex; align-items: center; justify-content: center; }
/* Quantity stepper component (unigrano_stepper()): cards, product page and cart. */
.ug-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ug-input); border-radius: 10px; overflow: hidden; background: var(--ug-surface); color: var(--ug-deep); }
.ug-stepper[hidden] { display: none; }
.ug-stepper button { width: 28px; height: 30px; border: 0; background: var(--ug-tint); color: var(--ug-deep); font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer; }
.ug-stepper button:hover:not(:disabled) { background: #E3E9C6; }
.ug-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.ug-stepper__qty { min-width: 32px; text-align: center; font-weight: 800; font-size: 13px; color: var(--ug-ink); }
.ug-stepper input.qty { width: 36px; height: 30px; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.ug-stepper input.qty::-webkit-outer-spin-button, .ug-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ug-stepper--lg { border-radius: 12px; }
.ug-stepper--lg button { width: 34px; height: 38px; font-size: 16px; }
.ug-stepper--lg .ug-stepper__qty { min-width: 40px; font-size: 13.5px; }
/* The store pages' generic input styling (border, radius, background) must not reach the stepper's input. */
.ug-page--store .ug-stepper input.input-text.qty { width: 44px; height: 38px; min-height: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none; padding: 0; text-align: center; font-weight: 800; font-size: 13.5px; }
.ug-buybox.is-busy .ug-stepper, .ug-buybox.is-busy .ug-btn--add { opacity: .7; }
.ug-card__note { margin: -4px 4px 4px; font-size: 9.5px; font-weight: 700; color: var(--ug-amber-text); text-align: right; }
.ug-card__note[hidden] { display: none; }
.ug-btn--lg { height: 50px; flex: 1 1 160px; }
.added_to_cart { display: none !important; }
.ug-linkbtn { font-size: 11.5px; font-weight: 700; color: var(--ug-deep); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.ug-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #2F3A0E; }
.ug-eyebrow--olive { font-size: 9.5px; color: var(--ug-accent-text); }
.ug-eyebrow--amber { font-size: 9.5px; color: var(--ug-amber-text); }
.ug-h2 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -0.01em; }
.ug-lede { margin: 6px 0 0; color: var(--ug-muted); }

/* Top strip */
.ug-topbar { background: var(--ug-brand); color: var(--ug-ink-on-brand); font-size: 11.5px; }
.ug-topbar__inner { padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.ug-topbar__links { display: flex; gap: 20px; }
.ug-topbar a { color: var(--ug-ink-on-brand); font-weight: 600; }

/* Header */
.ug-header { background: var(--ug-surface); border-bottom: 1px solid var(--ug-line); position: sticky; top: 0; z-index: 100; }
/* Sticky header sits below the WordPress admin bar for logged-in staff (fixed at 32px / 46px; scrolls away under 600px). */
.admin-bar .ug-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ug-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ug-header { top: 0; } }
html { scroll-padding-top: 140px; }
.ug-header__bar { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.ug-header__logo { display: block; line-height: 0; }
.ug-logo { height: 46px; width: auto; display: block; }
.ug-deliver { display: flex; align-items: center; gap: 8px; background: var(--ug-tint-2); border: 0; border-radius: 12px; padding: 8px 14px; cursor: pointer; text-align: left; min-height: 44px; }
.ug-deliver__icon { display: flex; flex: none; }
.ug-deliver__text { display: flex; flex-direction: column; line-height: 1.2; }
.ug-deliver__label { font-size: 9.5px; color: var(--ug-muted); }
.ug-deliver.has-address .ug-deliver__label { display: none; } /* the type icon says Home / Office */
.ug-deliver__value { font-size: 11.5px; font-weight: 700; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ug-input); border-radius: 14px; padding: 0 16px; height: 48px; background: var(--ug-surface); }
.ug-search:focus-within { border-color: var(--ug-olive); }
.ug-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: transparent; }
.ug-header__actions { display: flex; align-items: center; gap: 8px; }
.ug-iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ug-ink); }
.ug-iconbtn:hover { background: var(--ug-tint-2); color: var(--ug-ink); }
.ug-cartbtn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; background: var(--ug-brand); color: var(--ug-ink-on-brand); text-decoration: none; border-radius: 14px; }
.ug-cartbtn:hover { color: var(--ug-ink-on-brand); filter: brightness(.96); }
.ug-cartbtn__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ug-forest); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 20px; text-align: center; }
.ug-cartbtn__count[hidden] { display: none; }

.ug-catnav { font-size: 13px; font-weight: 600; }
/* One line always; scrolls sideways when the categories don't fit. */
.ug-catnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.ug-catnav__list::-webkit-scrollbar { display: none; }
.ug-catnav__list li { flex: none; }
.ug-catnav__list a { display: block; white-space: nowrap; color: var(--ug-ink); text-decoration: none; padding: 10px 0 12px; }
.ug-catnav__list a:hover, .ug-catnav__list a[aria-current="page"], .ug-catnav__list .current-menu-item > a { color: var(--ug-deep); padding-bottom: 9px; border-bottom: 3px solid var(--ug-brand); }
.ug-catnav__list .is-accent a { color: var(--ug-accent-text); }

/* Pincode dialog */
.ug-dialog { border: 0; border-radius: 20px; padding: 0; width: min(420px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(35, 43, 12, .25); }
.ug-dialog::backdrop { background: rgba(35, 43, 12, .45); }
.ug-dialog__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ug-dialog h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.ug-dialog label { font-size: 11.5px; font-weight: 700; }
.ug-dialog input { height: 46px; border: 1.5px solid var(--ug-input); border-radius: 12px; padding: 0 14px; font-size: 14px; }
.ug-saved { display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.ug-saved__title { font-size: 11.5px; font-weight: 700; }
.ug-saved__item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--ug-input); border-radius: 12px; background: var(--ug-surface); color: var(--ug-ink); text-align: left; cursor: pointer; }
.ug-saved__item:hover, .ug-saved__item.is-selected { border-color: var(--ug-olive); background: var(--ug-tint); }
.ug-saved__item svg { flex: none; margin-top: 2px; }
.ug-saved__item > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ug-ink); }
.ug-saved__item strong { font-size: 9.5px; font-weight: 700; color: var(--ug-muted); text-transform: uppercase; letter-spacing: .04em; }
.ug-dialog__msg { margin: 0; font-size: 11.5px; color: var(--ug-muted); min-height: 1.2em; }
.ug-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Home */
.ug-home { padding-top: 24px; display: flex; flex-direction: column; gap: 56px; }
.ug-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ug-hero__main { grid-column: span 2; min-height: 360px; border-radius: 24px; overflow: hidden; background: var(--ug-brand); display: flex; flex-wrap: wrap; }
.ug-hero__text { flex: 1 1 300px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; color: var(--ug-ink-on-brand); }
.ug-hero__text h1 { margin: 0; font-size: 43px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.ug-hero__text p { margin: 0; font-size: 14px; line-height: 1.5; color: #26300E; max-width: 340px; }
.ug-hero__text .ug-btn { align-self: flex-start; margin-top: 8px; }
.ug-hero__img { flex: 1 1 300px; min-height: 280px; width: 50%; object-fit: cover; }
.ug-dots { display: flex; gap: 6px; margin-top: 12px; }
.ug-dots span { width: 6px; height: 6px; border-radius: 3px; background: #5E6E2A; }
.ug-dots .is-active { width: 24px; background: var(--ug-forest); }
.ug-hero__side { display: flex; flex-direction: column; gap: 16px; }
.ug-promo { flex: 1; text-decoration: none; color: var(--ug-ink); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.ug-promo:hover { color: var(--ug-ink); }
.ug-promo--tint { background: var(--ug-tint); }
.ug-promo--cream { background: var(--ug-cream); flex-direction: row; align-items: center; gap: 16px; }
.ug-promo__stack { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ug-promo__title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.ug-promo__link { font-size: 13px; font-weight: 700; color: var(--ug-deep); }
.ug-promo img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; }

.ug-usps { margin-top: -32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 18px; }
.ug-usp { display: flex; gap: 12px; align-items: center; padding: 18px 22px; }
.ug-usp__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ug-tint); display: grid; place-items: center; }
.ug-usp strong { display: block; font-size: 13px; }
.ug-usp span span { font-size: 11.5px; color: var(--ug-muted); }

.ug-section { display: flex; flex-direction: column; gap: 20px; }
.ug-section__head { display: flex; justify-content: space-between; align-items: baseline; }
.ug-section__head a { font-weight: 700; font-size: 13px; }

.ug-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.ug-cat { text-decoration: none; color: var(--ug-ink); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ug-cat:hover { color: var(--ug-deep); }
.ug-cat__img { width: 100%; aspect-ratio: 1; border-radius: 20px; background: var(--ug-tint); overflow: hidden; display: block; }
.ug-cat__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.ug-cat__name { font-size: 13px; font-weight: 700; text-align: center; }

/* Product grid + card */
.ug-grid { display: grid; gap: 16px; }
.ug-grid--220 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ug-grid--210 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.ug-card { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ug-card__media { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--ug-img); aspect-ratio: 1; }
.ug-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ug-card__mediawrap { position: relative; }
.ug-heart { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ug-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(35, 43, 12, .15); transition: transform .15s; }
.ug-heart:hover { transform: scale(1.06); }
.ug-heart.is-active { color: var(--ug-deep); }
.ug-heart.is-active svg { fill: currentColor; }
.ug-heart--lg { top: 14px; right: 14px; width: 44px; height: 44px; }
.ug-iconbtn--count { position: relative; }
.ug-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ug-deep); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 18px; text-align: center; }
.ug-count[hidden] { display: none; }
.grocery-wishlist-account .ug-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grocery-wishlist-account { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; }
.grocery-wishlist-account > * { grid-column: 1 / -1; }
.grocery-wishlist-account > h2 { grid-column: 1; grid-row: 1; margin: 0 0 16px; }
.grocery-wishlist-account > .grocery-wishlist-sort { grid-column: 2; grid-row: 1; }
.grocery-wishlist-sort { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; }
.grocery-wishlist-sort select { min-height: 44px; border: 1.5px solid var(--ug-input); border-radius: 12px; padding: 0 12px; background: var(--ug-surface); font-size: 13px; }
.grocery-wishlist-account .woocommerce-pagination { margin-top: 20px; }
.ug-toast { position: fixed; left: 50%; top: 20%; z-index: 1000; max-width: min(440px, calc(100% - 32px)); padding: 14px 44px 18px 18px; overflow: hidden; border-radius: 12px; background: var(--ug-forest); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 30px rgba(35, 43, 12, .25); transform: translate(-50%, -16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ug-toast__close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ug-toast__close:hover { background: rgba(255, 255, 255, .15); }
.ug-toast__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--ug-brand); transform-origin: left; }
@keyframes ug-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ug-toast.is-visible { pointer-events: auto; }
.ug-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .ug-toast { transition: none; } }
.grocery-wishlist-note { font-size: 13px; color: var(--ug-muted); margin: 0 0 16px; }
.grocery-wishlist-empty { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 32px; text-align: center; color: var(--ug-muted); }
.grocery-wishlist-empty .button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 12px; background: var(--ug-brand); color: var(--ug-ink-on-brand); font-weight: 800; text-decoration: none; }
.ug-badge { position: absolute; top: 8px; left: 8px; background: var(--ug-brand); color: var(--ug-ink-on-brand); font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.ug-badge--lg { top: 14px; left: 14px; font-size: 11px; padding: 5px 10px; border-radius: 8px; }
.ug-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.ug-card__meta { font-size: 11px; color: var(--ug-muted); display: flex; align-items: center; gap: 6px; }
.ug-veg { flex: none; width: 10px; height: 10px; border: 1.5px solid var(--ug-veg); border-radius: 2px; display: grid; place-items: center; }
.ug-veg::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ug-veg); }
.ug-card__title { margin: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ug-card__title a { color: var(--ug-ink); text-decoration: none; }
.ug-card__title a:hover { color: var(--ug-deep); }
.ug-chips { display: flex; gap: 6px; padding: 0 4px; }
.ug-chip { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1.5px solid var(--ug-input); background: transparent; color: var(--ug-ink); cursor: pointer; }
.ug-chip.is-selected { font-weight: 700; border-color: var(--ug-brand); background: var(--ug-tint); color: var(--ug-ink-on-brand); }
.ug-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px 4px; }
.ug-card--grid .ug-card__foot { padding-top: 6px; }
.ug-card__price { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.ug-card__price [data-role="unit"] { flex-basis: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Same footer on every card: the add/stepper box has one fixed width, the price takes the rest on fixed-height lines. */
.ug-card__foot .ug-buybox, .ug-card__foot > .ug-btn--muted { width: 96px; }
.ug-card__foot .ug-stepper { min-width: 0; }
.ug-card__foot .ug-stepper button { width: 32px; }
.ug-card__foot .ug-btn--add { padding: 0; }
.ug-was { font-size: 11.5px; font-weight: 600; color: var(--ug-muted); text-decoration: line-through; }
.ug-buy__price .ug-was { font-size: 16px; }
.ug-card__price strong { font-size: 16px; font-weight: 800; }
.ug-card__price span { font-size: 9.5px; color: var(--ug-muted); }

/* Deliverability (data attribute set by grocery-custom) */
.ug-undeliverable { display: none; margin: 0 4px 4px; padding: 8px 10px; border-radius: 10px; background: var(--ug-tint-2); color: var(--ug-muted); font-size: 11px; font-weight: 700; text-align: center; }
.ug-undeliverable--lg { margin: 0; padding: 14px; font-size: 13px; }
[data-grocery-deliverable="false"] .ug-undeliverable { display: block; }
[data-grocery-deliverable="false"] .ug-buybox,
[data-grocery-deliverable="false"] .ug-chips,
[data-grocery-deliverable="false"] .ug-buy__form { display: none; }
[data-grocery-deliverable="false"] .ug-card__media img { opacity: .55; filter: grayscale(.4); }
.ug-dialog__msg[data-grocery-serviceable="true"], .ug-delivery__msg[data-grocery-serviceable="true"] { color: var(--ug-brand-line); font-weight: 700; }
.ug-dialog__msg[data-grocery-serviceable="false"], .ug-delivery__msg[data-grocery-serviceable="false"] { color: #9A3412; font-weight: 700; }

/* Cart/checkout progress (grocery-custom) */
.grocery-progress { margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.grocery-progress__row { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; background: var(--ug-tint); border: 1px solid var(--ug-brand); }
.grocery-progress__row.is-warning { background: #FDF3DC; border-color: var(--ug-mustard); }
.grocery-progress__row.is-success { background: var(--ug-tint); }
.grocery-progress__bar { height: 6px; border-radius: 3px; background: rgba(35, 43, 12, .1); overflow: hidden; }
.grocery-progress__bar span { display: block; height: 100%; background: var(--ug-deep); border-radius: 3px; transition: width .3s; }
.is-warning .grocery-progress__bar span { background: var(--ug-mustard); }

/* Collection band */
.ug-collection { background: var(--ug-tint); border-radius: 28px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.ug-collection__intro { flex: 1 1 280px; background: var(--ug-brand); color: var(--ug-ink-on-brand); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.ug-collection__intro h2 { margin: 0; font-size: 29px; font-weight: 800; line-height: 1.1; }
.ug-collection__intro p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #26300E; }
.ug-collection__intro .ug-btn { margin-top: auto; align-self: flex-start; padding: 12px 20px; }
.ug-collection__grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ug-mini { background: var(--ug-surface); border-radius: 18px; padding: 10px; text-decoration: none; color: var(--ug-ink); display: flex; flex-direction: column; gap: 6px; }
.ug-mini:hover { color: var(--ug-deep); }
.ug-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--ug-img); display: block; }
.ug-mini strong { font-size: 13px; padding: 0 4px; }
.ug-mini span { font-size: 11px; color: var(--ug-muted); padding: 0 4px 4px; }

/* Regions */
.ug-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ug-region { position: relative; display: block; border-radius: 22px; overflow: hidden; height: 220px; text-decoration: none; background: #E9ECDD; }
.ug-region img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ug-region__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; background: rgba(35, 43, 12, .82); color: #fff; display: flex; flex-direction: column; gap: 2px; }
.ug-region__cap strong { font-size: 16px; }
.ug-region__cap span { font-size: 11.5px; color: #E4EACB; }

/* Testimonials */
.ug-quotes { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; }
.ug-quotes::-webkit-scrollbar { display: none; }
.ug-quote { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; margin: 0; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.ug-quote blockquote { margin: 0; font-size: 14px; line-height: 1.55; }
.ug-quote figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ug-quote__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ug-quote__name { font-size: 13.5px; font-weight: 700; }
.ug-quote__place { font-size: 11.5px; font-weight: 500; color: var(--ug-muted); }
.ug-quote__tick { display: flex; flex: none; }
@media (max-width: 900px) { .ug-quote { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .ug-quote { flex-basis: 100%; } }

/* App band */
.ug-appband { background: var(--ug-forest); border-radius: 28px; padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.ug-appband > div:first-child { flex: 1 1 360px; }
.ug-appband h2 { margin: 0 0 8px; font-size: 27px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.ug-appband p { margin: 0; color: var(--ug-on-forest); font-size: 13.5px; }
.ug-appband__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ug-appband__btns a { background: #0B0F05; color: #fff; border: 1px solid rgba(255, 255, 255, .45); text-decoration: none; border-radius: 12px; padding: 10px 20px; display: flex; align-items: center; gap: 10px; min-width: 160px; }
.ug-appband__btns a > span { display: flex; flex-direction: column; }
.ug-appband__btns svg { flex: none; }
.ug-appband__btns a > span > span { font-size: 9.5px; }
.ug-appband__btns strong { font-size: 15.5px; }

/* Footer */
.ug-footer { background: var(--ug-forest); color: var(--ug-on-forest); margin-top: 56px; }
.ug-footer__grid { padding-top: 48px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.ug-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.ug-footer__brand .ug-logo { height: 42px; align-self: flex-start; }
.ug-footer__brand p { margin: 0; font-size: 11.5px; line-height: 1.6; }
.ug-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ug-footer__col strong { color: var(--ug-brand); }
.ug-footer__col li { list-style: none; }
.ug-footer__col a { color: var(--ug-on-forest); text-decoration: none; }
.ug-footer__col a:hover { color: #fff; text-decoration: underline; }
.ug-footer__legal { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--ug-forest-line); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 11px; color: var(--ug-on-forest-muted); }

/* Breadcrumb */
.ug-breadcrumb { font-size: 11.5px; color: var(--ug-muted); }

/* Listing (Category board) */
.ug-listing { padding-top: 18px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.ug-listing__body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ug-filters { flex: 1 1 220px; max-width: 260px; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.ug-filters__head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; min-height: 44px; }
.ug-filters__toggle { font-size: 14px; font-weight: 700; color: var(--ug-ink); }
.ug-filters__clear { position: relative; z-index: 1; font-size: 11.5px; font-weight: 700; color: var(--ug-deep); text-decoration: none; min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--ug-input); border-radius: 8px; background: var(--ug-surface); }
.ug-filters__clear:hover { background: var(--ug-tint-2); }
.ug-filters__groups { display: flex; flex-direction: column; gap: 18px; }
.ug-filters__group { display: flex; flex-direction: column; gap: 8px; }
.ug-filters__set { border: 0; border-top: 1px solid var(--ug-line); padding: 16px 0 0; margin: 0; gap: 10px; font-size: 13px; }
.ug-filters__label { font-size: 11.5px; font-weight: 700; padding: 0; float: left; margin-bottom: 4px; }
.ug-filters__set .ug-filters__label + * { clear: left; }
.ug-filterbtn { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; min-height: 44px; border-radius: 10px; border: 1px solid var(--ug-input); background: var(--ug-surface); font-size: 13px; font-weight: 600; color: var(--ug-ink); text-decoration: none; }
.ug-filterbtn span { color: var(--ug-muted); }
.ug-filterbtn.is-selected { border: 1.5px solid var(--ug-brand); background: var(--ug-tint); font-weight: 700; color: var(--ug-ink-on-brand); }
.ug-filterbtn.is-selected span { color: inherit; }
.ug-check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.ug-check input { accent-color: var(--ug-olive-strong); width: 18px; height: 18px; margin: 0; flex: none; }
.ug-check__count { margin-left: auto; color: var(--ug-muted); font-size: 11.5px; }
.ug-filters__set--first { border-top: 0; padding-top: 0; }
.ug-listing__results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ug-listing__bar { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--ug-line); }
.ug-listing__count { margin: 0; font-size: 16px; font-weight: 800; color: var(--ug-ink); }
.ug-sort { display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; font-size: 13.5px; }
.ug-sort__label { font-weight: 800; color: var(--ug-ink); }
.ug-sort__tab { padding: 10px 0; border-bottom: 3px solid transparent; color: var(--ug-body); text-decoration: none; }
.ug-sort__tab:hover { color: var(--ug-ink); }
.ug-sort__tab[aria-current] { color: var(--ug-brand-line); font-weight: 700; border-bottom-color: var(--ug-brand-line); }
@media (max-width: 720px) {
	.ug-listing__count { font-size: 13.5px; }
	.ug-sort { flex-wrap: nowrap; overflow-x: auto; gap: 20px; scrollbar-width: none; white-space: nowrap; }
}
.ug-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ug-pill { font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ug-brand); color: var(--ug-ink-on-brand); text-decoration: none; }
.ug-empty { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 32px; text-align: center; color: var(--ug-muted); }

.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 8px 0 0; flex-wrap: wrap; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ug-input); background: var(--ug-surface); text-decoration: none; font-weight: 700; color: var(--ug-ink); }
.woocommerce-pagination .current { background: var(--ug-brand); border-color: var(--ug-brand); }

/* Product (Product board) */
.ug-product { padding-top: 18px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.ug-product__top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ug-gallery { flex: 1 1 420px; display: flex; gap: 12px; min-width: 0; }
.ug-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.ug-gallery__thumb { width: 64px; height: 64px; padding: 0; border-radius: 12px; border: 1px solid var(--ug-input); overflow: hidden; background: var(--ug-surface); cursor: pointer; }
.ug-gallery__thumb.is-selected { border: 2px solid var(--ug-brand); }
.ug-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ug-gallery__main { flex: 1; position: relative; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 24px; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; }
.ug-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.ug-buy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ug-buy__brand { font-size: 11.5px; font-weight: 700; color: var(--ug-brand-line); }
.ug-buy__title { margin: 0; font-size: 31px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ug-buy__lede { color: var(--ug-muted); line-height: 1.5; }
.ug-buy__lede p { margin: 0; }
.ug-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ug-buy__price strong { font-size: 29px; font-weight: 800; }
.ug-buy__price > span { font-size: 11.5px; color: var(--ug-muted); }
.ug-buy__sizes { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.ug-buy__sizes legend { padding: 0; margin-bottom: 8px; }
.ug-size { cursor: pointer; position: relative; }
.ug-size input { position: absolute; opacity: 0; pointer-events: none; }
.ug-size:focus-within { outline: 3px solid var(--ug-olive); outline-offset: 2px; }
.ug-buy__label { font-size: 11.5px; font-weight: 700; }
.ug-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.ug-size { text-align: left; min-width: 120px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--ug-input); background: var(--ug-surface); }
.ug-size strong { display: block; }
.ug-size span { font-size: 11px; color: var(--ug-muted); }
.ug-size.is-selected { border: 2px solid var(--ug-brand); background: var(--ug-tint); color: var(--ug-ink-on-brand); }
.ug-size.is-selected span { color: var(--ug-ink-on-brand); }
.ug-buy__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ug-buy__form { flex-direction: column; align-items: flex-start; gap: 6px; }
.ug-buybox--lg .ug-stepper { min-height: 50px; min-width: 156px; }
.ug-buybox--lg .ug-stepper button { width: 52px; }
.ug-buybox--lg .ug-btn { min-height: 50px; border-radius: 12px; padding: 0 28px; }

/* Ratings and reviews */
.ug-stars { --ug-star-off: #D9DCCB; display: inline-block; font-size: 16px; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, var(--ug-mustard) calc(var(--ug-rating) / 5 * 100%), var(--ug-star-off) 0); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ug-rating { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ug-ink); text-decoration: none; }
.ug-rating--none, .ug-rating__count { color: var(--ug-muted); }
.ug-reviews { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ug-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ug-reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; flex: 1 1 auto; }
.ug-reviews__title { margin: 0; font-size: 16px; font-weight: 800; color: var(--ug-ink); }
.ug-reviews__head .ug-rating { margin: 0; font-size: 13px; }
.ug-reviews__head .ug-stars { font-size: 13px; }
.ug-reviews__sort { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11.5px; color: var(--ug-muted); }
.ug-reviews__sort select { height: 32px; padding: 0 28px 0 10px; font-size: 11.5px; border-radius: 8px; }
.ug-reviews__list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr; gap: 10px; }
.ug-review { padding: 10px 12px; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 12px; min-width: 0; }
.ug-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 11.5px; line-height: 1.3; }
.ug-review__head strong { color: var(--ug-ink); font-weight: 700; }
.ug-review__city { margin-left: -4px; color: var(--ug-muted); }
.ug-review__city::before { content: ", "; }
.ug-stars--sm { font-size: 11px; letter-spacing: 1px; }
.ug-review__meta { font-size: 11px; color: var(--ug-muted); }
.ug-review__verified { color: var(--ug-accent-text); font-weight: 600; }
.ug-review__text { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ug-body); overflow-wrap: anywhere; }
.ug-review__text[data-ug-clamp] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.ug-review__text.is-expanded { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.ug-review__more { margin: 2px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ug-accent-text); cursor: pointer; }
.ug-review__more:hover { text-decoration: underline; }
.ug-review__more[hidden] { display: none; }
.ug-review__photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ug-review__photos a { display: block; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; border: 1px solid var(--ug-line); }
.ug-review__photos a:focus-visible { outline: 2px solid var(--ug-olive); outline-offset: 2px; }
.ug-review__photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.ug-review__photos a:hover img { transform: scale(1.06); }
.ug-reviews__empty { margin: 0; width: 100%; font-size: 13px; color: var(--ug-muted); }
.ug-reviews .woocommerce-pagination { width: 100%; font-size: 11.5px; }
@media (min-width: 900px) { .ug-reviews__list { grid-template-columns: 1fr 1fr; } }

/* Review photo lightbox */
.ug-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.ug-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.ug-lightbox::backdrop { background: rgba(20, 24, 8, .88); }
.ug-lightbox__img { max-width: min(92vw, 1000px); max-height: 82vh; object-fit: contain; border-radius: 10px; background: #111; }
.ug-lightbox button { position: absolute; border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 23px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.ug-lightbox button:hover, .ug-lightbox button:focus-visible { background: rgba(255, 255, 255, .28); }
.ug-lightbox__close { top: 14px; right: 14px; }
.ug-lightbox__nav { top: 50%; transform: translateY(-50%); }
.ug-lightbox__nav--prev { left: 12px; }
.ug-lightbox__nav--next { right: 12px; }
.ug-lightbox__nav[hidden] { display: none; }
.ug-lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; font-size: 11.5px; color: #fff; }

/* Order page: rate your items */
.grocery-reviews { margin-top: 32px; }
.grocery-review { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--ug-line); border-radius: 14px; background: var(--ug-surface); }
.grocery-review__product { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.grocery-review__product img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.grocery-review__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; border: 0; margin: 0; padding: 0; }
.grocery-review__stars input { position: absolute; opacity: 0; pointer-events: none; }
.grocery-review__stars label { font-size: 27px; line-height: 1; cursor: pointer; color: #D9DCCB; padding: 0 2px; }
.grocery-review__stars label:hover, .grocery-review__stars label:hover ~ label, .grocery-review__stars input:checked ~ label { color: var(--ug-mustard); }
.grocery-review__stars input:focus-visible + label { outline: 3px solid var(--ug-olive); border-radius: 6px; }
.grocery-review textarea { width: 100%; border: 1.5px solid var(--ug-input); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
.grocery-review__foot { display: flex; align-items: center; gap: 12px; }
.grocery-review__msg { font-size: 13px; color: var(--ug-muted); }
.grocery-review__msg.is-error { color: #B3261E; }
.grocery-review__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.grocery-review__photo { position: relative; width: 56px; height: 56px; }
.grocery-review__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--ug-line); }
.grocery-review__photo button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--ug-ink); color: #fff; font-size: 13px; line-height: 20px; cursor: pointer; }
.grocery-review__add { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1.5px dashed var(--ug-input); border-radius: 8px; font-size: 22px; color: var(--ug-muted); cursor: pointer; }
.grocery-review__add[hidden] { display: none; }
.grocery-review__add:hover, .grocery-review__add:focus-within { border-color: var(--ug-olive); color: var(--ug-deep); }
.grocery-review__add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.grocery-review__hint { margin: 0; font-size: 11px; color: var(--ug-muted); }
.ug-buy__soldout { margin: 0; font-weight: 700; color: var(--ug-muted); }
.ug-delivery { display: flex; flex-direction: column; gap: 10px; }
.ug-delivery__title { margin: 0 0 2px; font-size: 18px; font-weight: 800; color: var(--ug-ink); }
.ug-delivery__address { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--ug-tint); color: var(--ug-ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.ug-delivery__icon { display: flex; flex: none; }
.ug-delivery__line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-delivery__chev { flex: none; font-size: 20px; line-height: 1; }
.ug-delivery__eta { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px; border-radius: 14px; background: var(--ug-tint-2); font-size: 14px; }
[data-grocery-deliverable="false"] .ug-delivery__eta { display: none; }
.ug-delivery__eta[hidden] { display: none; }
.ug-delivery__eta svg { flex: none; margin-top: 2px; }
.ug-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 11.5px; font-weight: 700; }
.ug-trust div { background: var(--ug-tint); border-radius: 14px; padding: 14px; }
.ug-accordion { border-top: 1px solid var(--ug-line); }
.ug-accordion details { border-bottom: 1px solid var(--ug-line); }
.ug-accordion summary { padding: 16px 0; display: flex; justify-content: space-between; font-weight: 700; cursor: pointer; list-style: none; }
.ug-accordion summary::-webkit-details-marker { display: none; }
.ug-accordion summary::after { content: "+"; }
.ug-accordion details.is-open summary::after { content: "−"; }
.ug-accordion__body { padding: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--ug-body); }
.ug-accordion__body p { margin: 0 0 8px; }
.ug-pairs { background: var(--ug-tint); padding: 40px 0 56px; }
.ug-pairs .ug-wrap { display: flex; flex-direction: column; gap: 18px; }
.ug-pairs .ug-h2 { font-size: 23px; }
.ug-pairs .ug-lede { margin: -14px 0 0; }
.ug-pairs .ug-card { border: 0; }

/* Native variation form (variable products) */
.ug-buy__native table.variations { border-collapse: collapse; width: 100%; }
.ug-buy__native table.variations th { text-align: left; font-size: 11.5px; padding: 0 0 8px; }
.ug-buy__native select { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--ug-input); padding: 0 12px; background: var(--ug-surface); width: 100%; }
.ug-buy__native .single_add_to_cart_button { min-height: 50px; border-radius: 12px; border: 0; background: var(--ug-brand); color: var(--ug-ink-on-brand); font-weight: 800; padding: 0 24px; cursor: pointer; }
.ug-buy__native .quantity input { width: 64px; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--ug-input); text-align: center; }

/* Generic pages, cart, checkout, account */
.ug-page { padding-top: 18px; padding-bottom: 48px; }
.ug-page__title { margin: 12px 0 24px; font-size: 31px; font-weight: 800; letter-spacing: -0.02em; }
.ug-prose { max-width: 760px; line-height: 1.65; color: var(--ug-body); }
.ug-prose h2, .ug-prose h3 { color: var(--ug-ink); }
.ug-404 { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 40vh; }

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { list-style: none; margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: var(--ug-tint); border: 1px solid var(--ug-brand); color: var(--ug-ink); font-size: 13px; }
.woocommerce-error { background: #FBEAEA; border-color: #E5B4B4; }
.woocommerce-message .button, .woocommerce-info .button { float: right; font-weight: 700; }

.ug-page--store .wc-block-components-button:not(.is-link),
.ug-page--store .wc-block-cart__submit-button,
.ug-page--store .wc-block-components-checkout-place-order-button,
.ug-page--store .woocommerce-Button,
.ug-page--store button.button { background: var(--ug-brand) !important; color: var(--ug-ink-on-brand) !important; border: 0 !important; border-radius: 12px !important; font-weight: 800 !important; min-height: 50px; }
.ug-page--store .wc-block-components-text-input input,
.ug-page--store .wc-block-components-combobox .components-combobox-control input,
.ug-page--store .wc-blocks-components-select__select,
.ug-page--store .woocommerce-Input,
.ug-page--store input.input-text { border: 1.5px solid var(--ug-input) !important; border-radius: 12px !important; background: var(--ug-surface) !important; }
.ug-page--store .wc-block-cart .wc-block-components-sidebar { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 20px; }
.ug-page--store .wp-block-woocommerce-checkout-order-summary-block { background: var(--ug-surface); border-color: var(--ug-line) !important; border-radius: 20px; }
.ug-page--store .wc-block-components-radio-control__option { border-radius: 12px; }
.ug-page--store .wc-block-components-product-name { color: var(--ug-ink); font-weight: 700; text-decoration: none; }
/* Cart page (classic cart template: woocommerce/cart/cart.php) */
.ug-cart__table { width: 100%; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 8px 24px; margin-bottom: 24px; border-collapse: separate !important; border-spacing: 0; }
.ug-cart__table thead th { padding: 14px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ug-muted); border-bottom: 1px solid var(--ug-line); }
.ug-cart__table td { padding: 18px 12px; vertical-align: middle; border-bottom: 1px solid var(--ug-line); }
.ug-cart__table tr.cart_item:last-of-type td { border-bottom: 0; }
.ug-cart__table .product-name a { font-weight: 700; color: var(--ug-ink); text-decoration: none; }
.ug-cart__table th:last-child, .ug-cart__table td:last-child { text-align: right; }
.ug-cart__table .product-thumbnail { width: 72px; min-width: 72px; box-sizing: border-box; padding-left: 0 !important; padding-right: 16px !important; }
.ug-cart__table .product-name { width: 100%; }
.ug-cart__table .product-thumbnail img { width: 56px; height: 56px; max-width: none; object-fit: cover; border-radius: 12px; background: var(--ug-img); display: block; }
.ug-cart__table .product-price, .ug-cart__table .product-subtotal { white-space: nowrap; }
.ug-cart__table .product-price > *, .ug-cart__table .product-subtotal > * { display: block; }
.ug-cart__was { color: var(--ug-muted); font-size: 11.5px; }
.ug-cart__now, .product-subtotal strong { font-size: 14px; font-weight: 800; color: var(--ug-ink); }
.ug-cart__save { font-size: 11px; font-weight: 700; color: var(--ug-brand-line); }
.ug-cart__qtywrap { position: relative; display: inline-block; }
/* Quantity limit ("Max 2 per order"): tooltip over the disabled + button. */
.ug-cart__note { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 200px; padding: 6px 10px; border-radius: 8px; background: var(--ug-forest); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 6px 18px rgba(35, 43, 12, .2); opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.ug-cart__note::after { content: ""; position: absolute; right: 14px; top: 100%; border: 6px solid transparent; border-top-color: var(--ug-forest); }
.ug-cart__qtywrap:has([data-cart-plus]:disabled:hover) .ug-cart__note,
.ug-cart__qtywrap:has([data-cart-plus]:disabled:focus-visible) .ug-cart__note { opacity: 1; visibility: visible; }
.ug-cart__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 11.5px; color: var(--ug-muted); }
.ug-cart__link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ug-deep); text-decoration: underline; cursor: pointer; }
.ug-cart__link--danger { color: #9A3412; }
.ug-cart__link[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.ug-cart .actions { display: flex; padding-top: 18px !important; flex-wrap: wrap; gap: 12px; justify-content: space-between; text-align: left !important; border-bottom: 0; }
.ug-cart .ug-cart__table tr.ug-cart__actions-row { display: none !important; } /* Only the hidden "Update cart" button lives here now. */
.ug-cart__coupon { display: flex; gap: 10px; margin: 4px 0 6px; }
.ug-cart__coupon .input-text { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; margin: 0 !important; }
.ug-cart__coupon .button { min-height: 50px; padding: 0 20px !important; margin: 0 !important; border: 0; border-radius: 12px; background: var(--ug-tint) !important; color: var(--ug-deep) !important; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ug-cart__update { display: none !important; } /* Quantity buttons submit it over AJAX; the cart template shows it again without JS. */
.ug-cart .coupon .button { background: var(--ug-tint) !important; color: var(--ug-deep) !important; }
.ug-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.ug-cart-layout .ug-cart__table { margin-bottom: 0; }
/* Room for the sticky totals box to stay under the header even when the item list is short. */
@media (min-width: 1025px) {
	.ug-cart-layout { min-height: 100vh; }
	/* Whitespace below the layout is space the sticky box cannot use; keep only the footer's margin. */
	.woocommerce-cart .ug-page { padding-bottom: 0; }
}
/* Totals: as tall as their content (not the product list), and pinned while a long list scrolls. */
.cart-collaterals, .ug-page--store .wc-block-cart__sidebar { position: sticky; top: calc(var(--ug-header-h, 90px) + 12px); align-self: start; height: fit-content; }
.cart_totals { width: 100%; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 20px 22px; }
.cart_totals h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.cart_totals .shop_table th { width: 40%; }
.cart_totals .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; margin-top: 14px; min-height: 50px; border-radius: 12px; background: var(--ug-brand); color: var(--ug-ink-on-brand); font-weight: 800; text-decoration: none; }
.woocommerce-cart-form.processing, .cart_totals.processing { opacity: .55; pointer-events: none; }
@media (max-width: 1024px) {
	.ug-cart-layout { grid-template-columns: 1fr; gap: 24px; }
	.cart-collaterals { position: static; }
}
@media (max-width: 720px) {
	.ug-cart__table { padding: 4px 16px; }
	.ug-cart__table thead { display: none; }
	.ug-cart .ug-cart__table tr.cart_item { display: grid !important; grid-template-columns: 56px 1fr auto; gap: 8px 14px; padding: 16px 0; border-bottom: 1px solid var(--ug-line); }
	.ug-cart .ug-cart__table tr.cart_item:last-of-type { border-bottom: 0; }
	.ug-cart .ug-cart__table tr.cart_item td { display: block !important; padding: 0 !important; border: 0; text-align: left !important; background: none !important; }
	.ug-cart .ug-cart__table td::before { content: none !important; }
	.ug-cart .ug-cart__table .product-thumbnail { grid-column: 1; grid-row: 1 / span 3; width: auto; }
	.ug-cart .ug-cart__table .product-name { grid-column: 2 / 4; grid-row: 1; width: auto; }
	.ug-cart .ug-cart__table .product-price { grid-column: 2; grid-row: 2; }
	.ug-cart .ug-cart__table .product-quantity { grid-column: 2; grid-row: 3; }
	.ug-cart .ug-cart__table .product-subtotal { grid-column: 3; grid-row: 2 / span 2; align-self: end; text-align: right !important; }
}
}
/* Order received / view order (classic WooCommerce order templates) */
.woocommerce-order { display: flex; flex-direction: column; gap: 24px; max-width: 880px; }
.woocommerce-notice--success, .woocommerce-thankyou-order-received { margin: 0; padding: 18px 22px; border-radius: 18px; background: var(--ug-brand); color: var(--ug-ink-on-brand); font-size: 16px; font-weight: 800; }
.woocommerce-order-overview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.woocommerce-order-overview li { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 14px; padding: 12px 14px; font-size: 11px; color: var(--ug-muted); display: flex; flex-direction: column; gap: 2px; }
.woocommerce-order-overview li strong { font-size: 13.5px; color: var(--ug-ink); word-break: break-word; }
.woocommerce-order > p, .woocommerce-order > .woocommerce-order-details ~ p { margin: 0; }
.woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-additional-fields, .woocommerce-MyAccount-content .woocommerce-orders-table { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 20px 22px; }
.woocommerce-order h2, .woocommerce-MyAccount-content h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.shop_table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shop_table th, .shop_table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--ug-line); vertical-align: top; }
.shop_table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ug-muted); }
.shop_table td:last-child, .shop_table th:last-child { text-align: right; }
.shop_table tfoot th { font-weight: 600; color: var(--ug-muted); }
.shop_table tfoot tr:last-child th, .shop_table tfoot tr:last-child td { border-bottom: 0; }
.shop_table tfoot tr:nth-last-child(2) td, .shop_table tfoot tr:nth-last-child(2) th { font-size: 14px; font-weight: 800; color: var(--ug-ink); }
.shop_table .product-name a { color: var(--ug-ink); font-weight: 700; text-decoration: none; }
.shop_table small { color: var(--ug-muted); }
.woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.6; color: var(--ug-body); border: 0; padding: 0; }
.woocommerce-customer-details address p { margin: 6px 0 0; }
.woocommerce-customer-details .woocommerce-columns + * { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ug-line); }
.woocommerce-order-additional-fields dl, .wc-block-components-additional-fields-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 13px; }
.woocommerce-order-additional-fields dt, .wc-block-components-additional-fields-list dt { color: var(--ug-muted); font-weight: 600; }
.woocommerce-order-additional-fields dd, .wc-block-components-additional-fields-list dd { margin: 0; font-weight: 700; }
.woocommerce-orders-table .button, .woocommerce-MyAccount-content .button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--ug-tint); color: var(--ug-deep); font-weight: 700; font-size: 11.5px; text-decoration: none; margin: 2px 0 2px 6px; }
mark.order-number, mark.order-date, mark.order-status { background: none; color: var(--ug-ink); font-weight: 700; }

/* My Account layout */
.ug-page--store .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.woocommerce-MyAccount-navigation { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 12px; }
.woocommerce-MyAccount-navigation ul { flex-direction: column; margin: 0 !important; gap: 4px !important; }
.woocommerce-MyAccount-navigation a { border: 0 !important; background: transparent !important; border-radius: 10px !important; }
.woocommerce-MyAccount-navigation a:hover { background: var(--ug-tint-2) !important; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ug-tint) !important; color: var(--ug-deep) !important; font-weight: 800 !important; }
.woocommerce-MyAccount-content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.woocommerce-MyAccount-content > p { margin: 0; line-height: 1.6; color: var(--ug-body); }
.woocommerce-MyAccount-content form:not(.grocery-address__action) .form-row, .woocommerce-form-register .form-row, .woocommerce-form-login .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.woocommerce-MyAccount-content label, .woocommerce-form-register label, .woocommerce-form-login label { font-size: 11.5px; font-weight: 700; }
.woocommerce-MyAccount-content input.input-text, .woocommerce-MyAccount-content select, .woocommerce-form-register input.input-text, .woocommerce-form-login input.input-text { min-height: 46px; border: 1.5px solid var(--ug-input); border-radius: 12px; padding: 0 14px; background: var(--ug-surface); font-size: 13.5px; }
.woocommerce-MyAccount-content .description, .woocommerce-form-register .description { font-size: 11px; color: var(--ug-muted); }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--ug-line); border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; }
.woocommerce-MyAccount-content legend { font-weight: 800; padding: 0 6px; }
.woocommerce-MyAccount-content button.button[type="submit"], .woocommerce-form-register button[type="submit"], .woocommerce-form-login button[type="submit"], .grocery-addressbook__add { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ug-brand) !important; color: var(--ug-ink-on-brand) !important; font-weight: 800; text-decoration: none; cursor: pointer; margin: 0; }
.ug-page--store .u-columns, .ug-page--store #customer_login { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ug-page--store #customer_login > div { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 24px; }
.ug-page--store #customer_login h2 { margin: 0 0 16px; font-size: 20px; }

/* Address book (grocery-custom) */
.grocery-addressbook { display: flex; flex-direction: column; gap: 16px; }
.grocery-addressbook__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.grocery-addressbook__head p { margin: 0; color: var(--ug-muted); font-size: 13px; max-width: 520px; }
.grocery-addressbook__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grocery-address { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.grocery-address.is-primary { border: 2px solid var(--ug-brand); background: #FCFDF7; }
.grocery-address header { display: flex; gap: 8px; align-items: center; }
.grocery-address__label { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ug-accent-text); }
.grocery-address__primary { font-size: 9.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--ug-brand); color: var(--ug-ink-on-brand); }
.grocery-address p { margin: 0; color: var(--ug-body); line-height: 1.5; }
.grocery-address__phone { font-size: 11.5px; color: var(--ug-muted) !important; }
.grocery-address__warn { font-size: 11px; font-weight: 700; color: #9A3412 !important; }
.grocery-address footer { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--ug-line); }
.grocery-address footer a, .grocery-linkbtn { font-size: 11.5px; font-weight: 700; color: var(--ug-deep); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.grocery-linkbtn.is-danger { color: #9A3412; }
.grocery-address__action { margin: 0; display: inline; }
.grocery-address-form { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 22px; max-width: 680px; }
.grocery-address-form h2 { margin: 0 0 16px; font-size: 18px; }
.grocery-address-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.grocery-address-form__labels label, .grocery-address-form__phone > label { display: inline-flex; gap: 8px; align-items: center; margin: 4px 16px 8px 0; font-weight: 600; }
.grocery-address-form__primary { display: flex; gap: 8px; align-items: center; margin: 4px 0 16px; }
.grocery-address-form__actions { display: flex; gap: 16px; align-items: center; margin: 0; }
.grocery-address-form__actions a { font-weight: 700; }
.grocery-address-form__actions a.button { display: inline-flex; align-items: center; text-decoration: none; background: var(--ug-surface); color: var(--ug-deep); border: 1.5px solid var(--ug-deep); }

/* Checkout address picker (grocery-custom) */
.grocery-picker { margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.grocery-picker h2 { margin: 0; font-size: 18px; font-weight: 600; }
.grocery-picker__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grocery-picker__card { position: relative; background: var(--ug-surface); border: 1.5px solid var(--ug-input); border-radius: 16px; padding: 14px 16px 14px 42px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-size: 11.5px; }
.grocery-picker__card::before { content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ug-input); background: var(--ug-surface); }
.grocery-picker__card[aria-checked="true"] { border: 2px solid var(--ug-deep); background: #FCFDF7; }
.grocery-picker__card[aria-checked="true"]::before { border-color: var(--ug-deep); box-shadow: inset 0 0 0 3px var(--ug-surface); background: var(--ug-deep); }
.grocery-picker__card.is-new { justify-content: center; font-weight: 800; color: var(--ug-deep); }
.grocery-picker__label { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ug-accent-text); }
.grocery-picker__lines { color: var(--ug-body); line-height: 1.45; }
.grocery-picker__warn { font-size: 11px; font-weight: 700; color: #9A3412; }
.grocery-picker__manage { font-size: 11.5px; font-weight: 700; align-self: flex-start; }

/* Order timeline (grocery-custom) */
.grocery-timeline { list-style: none; margin: 0 0 8px; padding: 18px 20px; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.grocery-timeline li { position: relative; padding-top: 30px; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--ug-muted); }
.grocery-timeline li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; background: var(--ug-tint-2); color: var(--ug-muted); z-index: 1; }
.grocery-timeline li::after { content: ""; position: absolute; top: 10px; left: 22px; right: -8px; height: 3px; background: var(--ug-line); }
.grocery-timeline li:last-child::after { display: none; }
.grocery-timeline li strong { font-size: 13px; color: var(--ug-ink); }
.grocery-timeline li.is-done::before { content: "✓"; background: var(--ug-deep); color: #fff; }
.grocery-timeline li.is-done::after { background: var(--ug-deep); }
.grocery-timeline li.is-current::before { background: var(--ug-brand); color: var(--ug-ink-on-brand); box-shadow: 0 0 0 4px var(--ug-tint); }
.grocery-timeline li.is-todo strong { color: var(--ug-muted); font-weight: 600; }
div.grocery-timeline.is-cancelled { display: flex; flex-direction: column; gap: 4px; background: #FBEAEA; border-color: #E5B4B4; font-size: 13px; }

.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--ug-input); background: var(--ug-surface); text-decoration: none; font-weight: 600; color: var(--ug-ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ug-tint); border-color: var(--ug-brand); }

/* Desktop header stays on one line: logo and delivery address shrink before anything wraps. */
@media (min-width: 1024px) {
	.ug-header__bar { flex-wrap: nowrap; gap: 16px 20px; }
	.ug-header__logo { flex: none; }
	.ug-search { flex: 1 1 0; min-width: 160px; }
	.ug-deliver { flex: 0 1 auto; min-width: 0; }
	.ug-deliver__text { min-width: 0; }
	.ug-header__actions { flex: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.ug-logo { height: 38px; }
	.ug-deliver__value { max-width: 200px; }
	.ug-deliver { padding: 6px 10px; }
}
/* Tablet and phone header (below 1024px): logo + delivery address on the first line;
 * search, account and cart on the second; a rule separates them from the category menu. */
@media (max-width: 1023px) {
	.ug-header__bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px 10px; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ug-line); }
	.ug-header__logo { grid-column: 1 / 3; grid-row: 1; }
	.ug-logo { height: 34px; }
	.ug-deliver { grid-column: 3 / 5; grid-row: 1; justify-self: end; min-width: 0; max-width: 62vw; min-height: 40px; padding: 6px 12px; }
	.ug-deliver__label { display: none; }
	.ug-deliver__text { min-width: 0; }
	.ug-deliver__value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	/* Search : account + cart = 3 : 1 */
	.ug-search { grid-column: 1 / 4; grid-row: 2; flex: none; min-width: 0; height: 46px; }
	.ug-header__actions { grid-column: 4; grid-row: 2; justify-self: end; margin-left: 0; gap: 2px; }
	/* Collapsible filters below desktop width (tablet and phone). */
	.ug-filters__toggle { display: flex; align-items: center; gap: 8px; }
	.ug-filters__toggle::after { content: "▾"; font-size: 11px; transition: transform .15s; }
	.ug-filters.is-open .ug-filters__toggle::after { transform: rotate(180deg); }
	.ug-filters__groups { display: none; padding: 8px 0 16px; }
	.ug-filters.is-open .ug-filters__groups { display: flex; }
}
/* Very narrow: no room for the delivery address pill next to the logo. */
@media (max-width: 400px) {
	.ug-deliver { display: none; }
	.ug-header__logo { grid-column: 1 / 5; }
}
/* Very narrow: the icon column keeps a fixed width (two 36px icons) so the search bar keeps the rest. */
@media (max-width: 359px) {
	.ug-header__bar { grid-template-columns: repeat(3, minmax(0, 1fr)) 76px; column-gap: 6px; }
	.ug-iconbtn, .ug-cartbtn { width: 30px; height: 30px; }
	.ug-header__actions { gap: 4px; }
}
/* Phone */
@media (max-width: 720px) {
	.ug-wrap { padding-left: 16px; padding-right: 16px; }
	.ug-topbar__inner > span { display: none; }
	.ug-topbar__inner { justify-content: flex-end; }
	/* Header layout for phones shares the tablet rules above; only sizes differ here. */
	.ug-header__bar { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
	.ug-logo { height: 26px; }
	.ug-deliver { padding: 4px 8px; gap: 6px; min-height: 34px; max-width: 56vw; }
	.ug-deliver__icon svg { width: 14px; height: 14px; }
	.ug-deliver__value { font-size: 10px; max-width: 140px; }
	.ug-search { height: 38px; padding: 0 10px; gap: 6px; }
	.ug-search input { font-size: 12px; }
	.ug-iconbtn { width: 34px; height: 34px; }
	.ug-cartbtn { width: 34px; height: 34px; border-radius: 10px; }
	.ug-cartbtn__count { min-width: 16px; height: 16px; font-size: 8.5px; line-height: 16px; }
	.ug-catnav__list { scrollbar-width: none; gap: 20px; }
	.ug-catnav__list a { white-space: nowrap; padding: 6px 0 9px; }
	.ug-catnav__list a:hover, .ug-catnav__list a[aria-current="page"], .ug-catnav__list .current-menu-item > a { padding-bottom: 6px; }
	.ug-home { gap: 40px; padding-top: 16px; }
	.ug-hero__main { grid-column: auto; }
	.ug-hero__text { padding: 28px 24px; }
	.ug-hero__text h1 { font-size: 31px; }
	.ug-hero__img { width: 100%; min-height: 220px; }
	.ug-usps { margin-top: -16px; }
	.ug-h2 { font-size: 20px; }
	.ug-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.ug-grid--220, .ug-grid--210, .grocery-wishlist-account .ug-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ug-card { padding: 8px; border-radius: 16px; }
	.ug-card__foot { flex-direction: column; align-items: stretch; }
	.ug-btn--add, .ug-buybox, .ug-stepper, .ug-card__foot .ug-buybox, .ug-card__foot > .ug-btn--muted { width: 100%; }
	.ug-stepper { justify-content: space-between; }
	.ug-collection { padding: 16px; }
	.ug-collection__intro { min-height: 0; padding: 24px; }
	.ug-collection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ug-appband { padding: 28px 24px; }
	.ug-filters { max-width: none; padding: 8px 16px; gap: 0; }
	.ug-buy__title, .ug-page__title { font-size: 25px; }
	.ug-gallery { flex-direction: column-reverse; }
	.ug-gallery__thumbs { flex-direction: row; }
	.ug-trust { grid-template-columns: 1fr; }
	.ug-page--store .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-MyAccount-navigation { min-width: 0; padding: 8px; }
	.woocommerce-MyAccount-navigation ul { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; }
	.grocery-timeline { grid-template-columns: 1fr; gap: 14px; }
	.grocery-timeline li { padding: 0 0 0 34px; }
	.grocery-timeline li::after { top: 22px; left: 10px; right: auto; width: 3px; height: calc(100% - 8px); }
}

/* ---------- Hero carousel ---------- */
.ug-carousel { position: relative; display: block; }
.ug-carousel__track { display: grid; height: 100%; }
.ug-carousel__slide { grid-area: 1 / 1; display: flex; flex-wrap: wrap; min-height: 360px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ug-carousel__slide.is-active { opacity: 1; visibility: visible; }
.ug-hero__title { margin: 0; font-size: 43px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.ug-carousel .ug-dots { position: absolute; left: 40px; bottom: 32px; z-index: 2; margin: 0; }
.ug-carousel .ug-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #5E6E2A; cursor: pointer; transition: width .3s; }
.ug-carousel .ug-dots button.is-active { width: 24px; background: var(--ug-forest); }
.ug-carousel .ug-dots button:focus-visible { outline-offset: 3px; }
.ug-carousel .ug-hero__text { padding-bottom: 64px; }
@media (prefers-reduced-motion: reduce) { .ug-carousel__slide { transition: none; } }

/* ---------- Hover lift (transform/shadow only, so layout never moves) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.ug-card, .ug-mini, .ug-promo, .ug-region, .ug-cat__img, .ug-tile, .grocery-address, .ug-quote { transition: transform .2s ease, box-shadow .2s ease; will-change: transform; }
	.ug-card:hover, .ug-mini:hover, .ug-promo:hover, .ug-tile:hover, .grocery-address:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(35, 43, 12, .28); }
	.ug-region:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(35, 43, 12, .4); }
	.ug-cat:hover .ug-cat__img { transform: translateY(-4px); box-shadow: 0 10px 22px -10px rgba(35, 43, 12, .3); }
}

/* ---------- Form fields: reserved slot for validation messages ---------- */
.woocommerce-MyAccount-content .form-row.ug-has-slot, .woocommerce-ResetPassword .form-row.ug-has-slot, .lost_reset_password .form-row.ug-has-slot { position: relative; padding-bottom: 18px; margin-bottom: 8px; }
.ug-field-error { position: absolute; left: 2px; bottom: 0; font-size: 11px; line-height: 16px; font-weight: 600; color: #B42318; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.form-row.is-invalid input.input-text, .form-row.is-invalid select, .form-row.is-invalid input[type="password"], .form-row.is-invalid input[type="email"], .form-row.is-invalid input[type="tel"] { border-color: #D92D20 !important; background: #FFFBFA !important; }
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--ug-olive) !important; box-shadow: 0 0 0 3px var(--ug-tint); }
.form-row.is-invalid input:focus { box-shadow: 0 0 0 3px #FEE4E2; }
.form-row[hidden] { display: none !important; }
/* WooCommerce password show/hide toggle */
.password-input { position: relative; display: block; }
.password-input input { width: 100%; padding-right: 48px !important; }
.show-password-input { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--ug-muted); }
.show-password-input::after { content: ""; display: block; width: 20px; height: 20px; margin: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.show-password-input.display-password { color: var(--ug-deep); }
.woocommerce-password-strength { font-size: 11px; font-weight: 700; margin-top: 6px; padding: 6px 10px; border-radius: 8px; }
.woocommerce-password-strength.short, .woocommerce-password-strength.bad { background: #FEE4E2; color: #B42318; }
.woocommerce-password-strength.good { background: #FDF3DC; color: var(--ug-amber-text); }
.woocommerce-password-strength.strong { background: var(--ug-tint); color: var(--ug-deep); }
.woocommerce-password-hint { display: block; font-size: 11px; color: var(--ug-muted); margin-top: 4px; }

/* ---------- Login / Register / Forgot password (grocery-custom pages) ---------- */
.ug-page--auth { padding-top: 32px; }
.grocery-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 1040px; margin: 0 auto; background: var(--ug-surface); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(35, 43, 12, .08), 0 24px 48px -28px rgba(35, 43, 12, .35); }
.grocery-auth__aside { background: var(--ug-brand); color: var(--ug-ink-on-brand); padding: 48px 44px 32px; display: flex; flex-direction: column; gap: 18px; }
.grocery-auth__aside-title { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.grocery-auth__aside-text { margin: 0; font-size: 16px; line-height: 1.55; color: #26300E; max-width: 320px; }
.ug-auth-art { margin-top: auto; width: 100%; max-width: 360px; height: auto; align-self: center; }
.grocery-auth__main { padding: 56px 64px 44px; display: flex; flex-direction: column; }
.grocery-auth__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.grocery-auth__lede { margin: 6px 0 28px; font-size: 14px; color: var(--ug-muted); }
.grocery-auth__form { display: flex; flex-direction: column; }
.grocery-auth__section { border: 0; margin: 0 0 8px; padding: 0; }
.grocery-auth__section legend { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ug-accent-text); margin-bottom: 16px; padding: 0; }
.grocery-auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grocery-auth__grid--3 { grid-template-columns: 1.2fr 1.2fr 1fr; }
.grocery-auth__country { margin: -6px 0 12px; font-size: 11.5px; color: var(--ug-muted); }
.grocery-auth__switch-id { display: block; margin: -10px 0 12px auto; padding: 4px 0; border: 0; background: none; color: var(--ug-deep); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.grocery-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 8px; font-size: 13px; }
.grocery-auth__row a { font-weight: 700; }
.grocery-auth__remember { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.grocery-auth__remember input { width: 18px; height: 18px; accent-color: var(--ug-olive-strong); margin: 0; }
.grocery-auth__terms { margin: 12px 0 24px; font-size: 13px; line-height: 1.55; color: var(--ug-muted); }
.grocery-auth__terms a { color: var(--ug-deep); font-weight: 600; }
.grocery-auth__submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border: 0; border-radius: 4px; background: var(--ug-forest); color: #fff !important; font-size: 15.5px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 2px 4px rgba(35, 43, 12, .2); transition: filter .15s; }
.grocery-auth__submit:hover { filter: brightness(1.25); }
.grocery-auth__alt { margin: 22px 0 0; text-align: center; font-size: 13.5px; color: var(--ug-muted); }
.grocery-auth__alt a { font-weight: 800; color: var(--ug-deep); }
.grocery-auth__sent .grocery-auth__submit { margin-top: 8px; }
.grocery-auth .woocommerce-error, .grocery-auth .woocommerce-message, .grocery-auth .woocommerce-info { margin-bottom: 20px; }
.grocery-auth .woocommerce-privacy-policy-text { display: none; } /* covered by the terms note */

/* Outlined field with the label on the border; message slot reserved below */
.grocery-field { position: relative; padding-bottom: 22px; margin: 0 0 4px; }
.grocery-field__input { width: 100%; height: 56px; border: 1.5px solid #B9BFA6; border-radius: 4px; padding: 0 16px; background: var(--ug-surface); font-size: 15.5px; color: var(--ug-ink); transition: border-color .15s, box-shadow .15s; }
select.grocery-field__input { appearance: none; padding-right: 36px; background: var(--ug-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6150' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
.grocery-field label { position: absolute; top: -9px; left: 12px; padding: 0 6px; background: var(--ug-surface); font-size: 11.5px; font-weight: 600; color: var(--ug-muted); line-height: 18px; pointer-events: none; }
.grocery-field .required { color: #B42318; }
.grocery-field__input:focus { outline: none; border-color: var(--ug-deep); box-shadow: 0 0 0 3px var(--ug-tint); }
.grocery-field:focus-within label { color: var(--ug-deep); }
.grocery-field--prefix .grocery-field__input { padding-left: 58px; }
.grocery-field__prefix { position: absolute; left: 16px; top: 0; height: 56px; display: flex; align-items: center; font-size: 15.5px; font-weight: 600; color: var(--ug-ink); pointer-events: none; }
.grocery-field__prefix::after { content: ""; display: inline-block; width: 1px; height: 22px; background: #DCE0CA; margin-left: 10px; }
.grocery-field--prefix.is-email .grocery-field__prefix { display: none; }
.grocery-field--prefix.is-email .grocery-field__input { padding-left: 16px; }
.grocery-field__reveal { position: absolute; right: 8px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--ug-muted); cursor: pointer; }
.grocery-field__reveal::after { content: ""; display: block; width: 22px; height: 22px; margin: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.grocery-field__reveal[aria-pressed="true"] { color: var(--ug-deep); }
.grocery-field input[type="password"], .grocery-field input[data-ug-revealed] { padding-right: 52px; }
.grocery-field .ug-field-error { left: 4px; bottom: 2px; }
.grocery-field.is-invalid .grocery-field__input { border-color: #D92D20; background: #FFFBFA; }
.grocery-field.is-invalid label { color: #B42318; }
.grocery-field__help { position: absolute; left: 4px; bottom: 2px; font-size: 11px; color: var(--ug-muted); }
.grocery-field.is-invalid .grocery-field__help { display: none; }

/* Password checklist */
.grocery-pwcheck { list-style: none; margin: -12px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; font-size: 11px; color: var(--ug-muted); }
.grocery-pwcheck li { display: flex; gap: 6px; align-items: center; }
.grocery-pwcheck li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #B9BFA6; }
.grocery-pwcheck li.is-met { color: var(--ug-deep); font-weight: 700; }
.grocery-pwcheck li.is-met::before { border-color: var(--ug-deep); background: var(--ug-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Lost / reset password ---------- */
.lost_reset_password, .woocommerce-ResetPassword { max-width: 520px; background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 24px; padding: 28px; }
.lost_reset_password > p:first-child, .woocommerce-ResetPassword > p:first-child { margin-top: 0; color: var(--ug-body); line-height: 1.6; }
.lost_reset_password .form-row, .woocommerce-ResetPassword .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 6px; }
.lost_reset_password label, .woocommerce-ResetPassword label { font-size: 11.5px; font-weight: 700; }
.lost_reset_password input.input-text, .woocommerce-ResetPassword input.input-text { min-height: 48px; border: 1.5px solid var(--ug-input); border-radius: 12px; padding: 0 14px; font-size: 13.5px; width: 100%; }
.lost_reset_password button[type="submit"], .woocommerce-ResetPassword button[type="submit"] { min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--ug-brand); color: var(--ug-ink-on-brand); font-weight: 800; cursor: pointer; }

/* ---------- Account navigation ---------- */
.ug-acctnav__who { display: flex; gap: 12px; align-items: center; padding: 8px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--ug-line); min-width: 0; }
.ug-acctnav__who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ug-acctnav__who strong { font-size: 13.5px; }
.ug-acctnav__who span span { font-size: 11px; color: var(--ug-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-acctnav__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ug-brand); color: var(--ug-ink-on-brand); display: grid; place-items: center; font-weight: 800; }
.woocommerce-MyAccount-navigation a { display: flex !important; align-items: center; gap: 10px; }
.woocommerce-MyAccount-navigation a svg { flex: none; opacity: .8; }
.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ug-line); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #9A3412 !important; }

/* ---------- Dashboard ---------- */
.ug-dash { display: flex; flex-direction: column; gap: 18px; }
.ug-dash__hello { background: var(--ug-brand); color: var(--ug-ink-on-brand); border-radius: 22px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.ug-dash__hello h2 { margin: 0 0 4px; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.ug-dash__hello p { margin: 0; color: #26300E; }
.ug-dash__latest { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ug-dash__latest header, .ug-dash__latest footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ug-dash__latest h3 { margin: 0; font-size: 15.5px; }
.ug-dash__latest footer { font-size: 13px; color: var(--ug-muted); }
.ug-dash__latest footer a { font-weight: 700; }
.ug-dash__latest .grocery-timeline { border: 0; padding: 4px 0 0; margin: 0; }
.ug-status { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ug-tint); color: var(--ug-deep); }
.ug-status--completed { background: var(--ug-deep); color: #fff; }
.ug-status--out-for-delivery { background: var(--ug-mustard); color: var(--ug-mustard-ink); }
.ug-status--cancelled, .ug-status--failed, .ug-status--refunded { background: #FBEAEA; color: #9A3412; }
.ug-dash__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ug-tile { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ug-ink); }
.ug-tile:hover { color: var(--ug-ink); }
.ug-tile__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ug-tint); display: grid; place-items: center; margin-bottom: 8px; }
.ug-tile strong { font-size: 13.5px; }
.ug-tile > span:last-child { font-size: 11.5px; color: var(--ug-muted); }

/* ---------- Account details form ---------- */
.woocommerce-EditAccountForm { background: var(--ug-surface); border: 1px solid var(--ug-line); border-radius: 20px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-EditAccountForm > *:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
.woocommerce-EditAccountForm .clear { display: none; }
.woocommerce-EditAccountForm #account_display_name_description { font-size: 11px; color: var(--ug-muted); }
.woocommerce-EditAccountForm fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 8px !important; }
.woocommerce-EditAccountForm fieldset > *:first-of-type, .woocommerce-EditAccountForm fieldset legend { grid-column: 1 / -1; }
.woocommerce-EditAccountForm .ug-phone { display: flex; align-items: stretch; }
.woocommerce-EditAccountForm .ug-phone__cc { display: flex; align-items: center; padding: 0 12px; min-height: 46px; border: 1.5px solid var(--ug-input); border-radius: 12px 0 0 12px; background: var(--ug-tint); font-size: 13.5px; font-weight: 600; color: var(--ug-ink); }
/* !important: outranks `.ug-page--store input.input-text` (full border and radius). */
.woocommerce-EditAccountForm .ug-phone input.input-text { flex: 1; min-width: 0; margin: 0; border-left: 0 !important; border-radius: 0 12px 12px 0 !important; }
/* Focus and error states go on the joined group, not the input alone. */
.woocommerce-EditAccountForm .ug-phone { border-radius: 12px; }
.woocommerce-EditAccountForm .ug-phone:focus-within { box-shadow: 0 0 0 3px var(--ug-tint); }
.woocommerce-EditAccountForm .ug-phone:focus-within .ug-phone__cc { border-color: var(--ug-olive); }
.woocommerce-EditAccountForm .ug-phone input.input-text:focus { box-shadow: none !important; border-left: 0 !important; }
.woocommerce-EditAccountForm .form-row.is-invalid .ug-phone__cc { border-color: #D92D20; }
.woocommerce-EditAccountForm > p:last-child { margin: 8px 0 0; }

@media (max-width: 720px) {
	.ug-carousel__slide { min-height: 0; }
	.ug-hero__title { font-size: 31px; }
	.ug-carousel .ug-dots { left: 24px; bottom: auto; top: 18px; }
	.ug-carousel .ug-hero__text { padding-top: 44px; padding-bottom: 28px; }
	.ug-acctnav__who { display: none; }
	.woocommerce-EditAccountForm, .woocommerce-EditAccountForm fieldset { grid-template-columns: 1fr; padding: 16px; }
	.ug-dash__hello { padding: 20px; }
	.ug-page--auth { padding-top: 12px; }
	.grocery-auth { grid-template-columns: 1fr; }
	.grocery-auth__aside { padding: 24px 20px 20px; gap: 6px; }
	.grocery-auth__aside-title { font-size: 25px; }
	.grocery-auth__aside-text { font-size: 13.5px; max-width: none; }
	.ug-auth-art { display: none; }
	.grocery-auth__main { padding: 28px 18px 30px; }
	.grocery-auth__grid, .grocery-auth__grid--3 { grid-template-columns: 1fr; }
	.grocery-pwcheck { grid-template-columns: 1fr 1fr; }
	.woocommerce-orders-table thead { display: none; }
	.woocommerce-orders-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--ug-line); }
	.woocommerce-orders-table td, .woocommerce-orders-table th { border: 0 !important; padding: 2px 0 !important; text-align: left !important; }
	.woocommerce-orders-table td::before { content: attr(data-title) ": "; color: var(--ug-muted); font-weight: 600; font-size: 11px; }
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { grid-column: 1 / -1; }
	.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { display: none; }
}
.woocommerce-MyAccount-content input.input-text, .woocommerce-MyAccount-content select { width: 100%; }
.grocery-auth button.grocery-auth__submit, .grocery-auth a.grocery-auth__submit { background: var(--ug-forest) !important; color: #fff !important; }

/* ---------- Hero: explicit layouts per width (auto-wrapping broke it at 760–1100px) ---------- */
.ug-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.ug-hero__main { grid-column: auto; }
.ug-carousel__slide { flex-wrap: nowrap; }
.ug-carousel .ug-hero__text { flex: 1 1 50%; min-width: 0; }
.ug-carousel .ug-hero__img { flex: 0 0 50%; width: 50%; min-height: 360px; }
@media (max-width: 1099px) {
	.ug-hero { grid-template-columns: minmax(0, 1fr); }
	.ug-hero__side { flex-direction: row; }
	.ug-hero__side .ug-promo { flex: 1 1 0; min-width: 0; }
	.ug-carousel .ug-hero__text { padding: 36px 32px 64px; }
	.ug-hero__text h1, .ug-hero__title { font-size: 36px; }
}
@media (max-width: 720px) {
	.ug-carousel__slide { flex-direction: column; }
	.ug-carousel .ug-hero__text { flex: none; padding: 44px 24px 28px; }
	.ug-carousel .ug-hero__img { flex: none; width: 100%; min-height: 0; height: 220px; }
	.ug-hero__side { flex-direction: column; }
	.ug-hero__text h1, .ug-hero__title { font-size: 29px; }
}

/* Auth fields: outrank the older WooCommerce form styles (.woocommerce-form-register input.input-text …),
   which reset padding/height and pushed typed digits under the +91 prefix. */
.grocery-auth .grocery-field input.grocery-field__input,
.grocery-auth .grocery-field select.grocery-field__input { height: 56px; min-height: 56px; padding: 0 16px; border: 1.5px solid #B9BFA6; border-radius: 4px; font-size: 15.5px; background-color: var(--ug-surface); }
.grocery-auth .grocery-field--prefix input.grocery-field__input { padding-left: 64px; }
.grocery-auth .grocery-field--prefix.is-email input.grocery-field__input { padding-left: 16px; }
.grocery-auth .grocery-field input.grocery-field__input[type="password"],
.grocery-auth .grocery-field input.grocery-field__input[data-ug-revealed] { padding-right: 52px; }
.grocery-auth .grocery-field select.grocery-field__input { padding-right: 36px; }
.grocery-auth .grocery-field input.grocery-field__input:focus,
.grocery-auth .grocery-field select.grocery-field__input:focus { border-color: var(--ug-deep); }
.grocery-auth .grocery-field.is-invalid input.grocery-field__input,
.grocery-auth .grocery-field.is-invalid select.grocery-field__input { border-color: #D92D20; background-color: #FFFBFA; }

/* Pincode lookup note (shares the reserved line under the field; hidden while an error shows) */
.ug-field-info { position: absolute; left: 4px; bottom: 2px; max-width: 100%; font-size: 11px; line-height: 16px; font-weight: 700; color: var(--ug-brand-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ug-field-info.is-warn { color: var(--ug-amber-text); }
.form-row.is-invalid .ug-field-info { display: none; }
.grocery-address-form .form-row:has(.ug-field-info) { position: relative; padding-bottom: 18px; }

/* Two-step sign-up */
.grocery-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 10px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ug-muted); }
.grocery-steps li { display: flex; align-items: center; gap: 8px; }
.grocery-steps li + li::before { content: ""; width: 36px; height: 2px; background: var(--ug-line); margin-right: 2px; }
.grocery-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #B9BFA6; font-size: 11px; }
.grocery-steps li.is-current { color: var(--ug-ink); }
.grocery-steps li.is-current span { border-color: var(--ug-deep); background: var(--ug-deep); color: #fff; }
.grocery-steps li.is-done span { border-color: var(--ug-deep); background: var(--ug-tint); color: var(--ug-deep); }
.grocery-step[hidden] { display: none; }
.grocery-step .grocery-auth__submit { margin-top: 4px; }
.grocery-step__summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 22px; border-radius: 6px; background: var(--ug-tint); font-size: 13px; }
.grocery-step__summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grocery-step__change { border: 0; background: none; padding: 4px 0; font-weight: 800; color: var(--ug-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex: none; }
.grocery-field select.grocery-field__input[hidden], .grocery-field input.grocery-field__input[hidden] { display: none; }
.grocery-field select.grocery-field__input:not([hidden]) + input.grocery-field__input:not([hidden]) { margin-top: 10px; }

/* Blocking loader (pincode lookup) */
.ug-blocker { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(250, 250, 245, .72); backdrop-filter: blur(2px); cursor: progress; }
.ug-blocker__box { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-radius: 12px; background: var(--ug-surface); box-shadow: 0 12px 40px -12px rgba(35, 43, 12, .35); font-weight: 700; color: var(--ug-ink); }
.ug-blocker__spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ug-tint); border-top-color: var(--ug-deep); animation: ug-spin .8s linear infinite; }
@keyframes ug-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ug-blocker__spinner { animation-duration: 2.4s; } }
body.ug-is-blocked { overflow: hidden; }

/* Auth pages use the same content width as the rest of the site (.ug-wrap: 1216px). */
.grocery-auth { max-width: none; }
/* Coloured panel : form = 1 : 3 on Login, Register and Forgot password (desktop/tablet; stacked on phones). */
@media (min-width: 721px) {
	.grocery-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
	.grocery-auth__aside { padding: 40px 28px 28px; }
	.grocery-auth__aside-title { font-size: 31px; }
	.grocery-auth__aside-text { font-size: 14px; }
}
/* Auth fields must beat the older `.ug-page--store input.input-text { … !important }` rule, which gave
   text inputs 12px corners and a lighter border while the State <select> kept the intended outline. */
.grocery-auth .grocery-field input.grocery-field__input,
.grocery-auth .grocery-field select.grocery-field__input { border: 1.5px solid #B9BFA6 !important; border-radius: 4px !important; background-color: var(--ug-surface) !important; }
.grocery-auth .grocery-field input.grocery-field__input:focus,
.grocery-auth .grocery-field select.grocery-field__input:focus { border-color: var(--ug-deep) !important; }
.grocery-auth .grocery-field.is-invalid input.grocery-field__input,
.grocery-auth .grocery-field.is-invalid select.grocery-field__input { border-color: #D92D20 !important; background-color: #FFFBFA !important; }

/* Form-level alert (rate limits, lockouts) */
.ug-form-alert { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #FEF3F2; border: 1px solid #FDA29B; color: #B42318; font-size: 13px; line-height: 1.4; }
.ug-cart-layout + .grocery-progress { margin: 24px 0 0; }
.cart_totals .woocommerce-shipping-calculator { display: none; } /* The "Deliver to" pincode drives delivery. */
.cart_totals #shipping_method { list-style: none; margin: 0; padding: 0; }
.cart_totals .woocommerce-shipping-destination { display: none; } /* Shown as its own "Delivering to" row. */
.ug-cart__hint { display: block; font-size: 11px; color: var(--ug-muted); }
.ug-bill .ug-bill__minus td { color: var(--ug-brand-line); font-weight: 700; }
.ug-bill .order-total th, .ug-bill .order-total td { font-size: 16px; font-weight: 800; }
.ug-bill__remove { margin-left: 6px; font-size: 11px; color: var(--ug-muted); }
.ug-bill__saved { display: block; margin-top: 2px; color: var(--ug-brand-line); font-size: 11.5px; font-weight: 800; }
.ug-cart__free { color: var(--ug-brand-line); font-weight: 800; }
.ug-bill .ug-cart__deliver-to th, .ug-bill .ug-cart__deliver-to td { font-size: 11.5px; }
.cart_totals .wc-proceed-to-checkout .checkout-button.is-disabled { opacity: .45; cursor: not-allowed; }
.ug-cart__hint--center { margin: 8px 0 0; text-align: center; }
