@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  font-family: Inter, "Segoe UI", sans-serif;
  color: #1c1917;
  background: #faf8f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --cream: #faf8f5;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --saffron: #f59e0b;
  --saffron-light: #fffbeb;
  --saffron-border: #fde68a;
  --espresso: #1c1917;
  --green: #15803d;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { position: sticky; z-index: 10; top: 0; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid var(--line); background: rgba(250,248,245,.96); backdrop-filter: blur(12px); }
.brand { display: flex; min-width: 225px; align-items: center; gap: 10px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 15px; background: linear-gradient(135deg,#fbbf24,#d97706); color: white; font-size: 21px; font-weight: 700; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 16px; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 10px 15px; border-radius: 13px; color: #78716c; font-size: 12px; font-weight: 600; transition: background .15s ease,color .15s ease; }
.nav-link:hover,.nav-link.is-active { background: #fef3c7; color: #b45309; }

.page-container { width: min(1120px, calc(100% - 48px)); margin: 36px auto 80px; }
.page-narrow { width: min(760px, calc(100% - 48px)); }
.search-row { display: flex; gap: 10px; margin-bottom: 25px; }
/* ---- icon system: every glyph is an external SVG in assets/icons ---- */
.icon,.nav-icon,.search-icon,.button-icon,.back-icon,.password-eye,.provider-icon,.category-icon img,.basket-illustration img,.brand-mark img,.auth-mark img,.product-icon img,.recipe-category-icon img,.recipe-detail-icon img,.chat-recipe-icon img,.chat-welcome-icon img,.message-avatar img,.recipe-favorite img,.save-product img,.servings-control img{display:block}
.nav-icon,.meta-icon{flex:0 0 auto}
.meta-icon{margin-top:1px}
.back-icon{display:inline-block;vertical-align:-2px}
.suggestion-icon{display:inline-block;vertical-align:-2px;margin-right:2px}
.chat-recipe-arrow{display:grid;place-items:center}
.servings-control button{display:grid;place-items:center}
.save-product{display:grid;place-items:center}
.search-field { display: flex; min-width: 0; min-height: 43px; flex: 1; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; background: white; color: #a8a29e; }
.search-field .search-icon { flex: 0 0 auto; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-field input::placeholder { color: #a8a29e; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 0; border-radius: 15px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .15s ease,background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--espresso); color: white; }
.button-dark:hover { background: #292524; }
.button-full { width: 100%; }
.button-outline { border: 1px solid var(--line); background: white; color: var(--ink); }
.category-section { margin-bottom: 22px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.section-title-row h1,.section-title-row h2 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.text-button { padding: 4px; border: 0; background: transparent; color: #b45309; cursor: pointer; font-size: 11px; font-weight: 600; }
.category-featured,.category-grid { display: grid; gap: 9px; }
.category-featured { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 9px; }
.category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.category-card { display: flex; min-height: 80px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 18px; background: white; cursor: pointer; text-align: left; transition: border-color .15s ease,background .15s ease; }
.category-card:hover,.category-card.is-selected { border-color: var(--saffron); background: #fffdf6; }
.category-featured .category-card { min-height: 92px; }
.category-featured .category-card strong { font-size: 12.5px; }
.category-featured .category-card small { font-size: 9.5px; line-height: 1.35; }
.category-icon img { width: 19px; height: 19px; }
.category-featured .category-icon { width: 38px; height: 38px; border-radius: 13px; }
.category-featured .category-icon img { width: 22px; height: 22px; }
.category-card-top { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.category-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; background: #fffbeb; font-size: 17px; }
.category-card strong { font-size: 11px; }
.category-card small { color: #a8a29e; font-size: 9px; }
.category-label { padding: 4px 7px; border-radius: 6px; background: #fef3c7; color: #b45309; font-size: 8px; font-weight: 700; }
.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.back-button { display: inline-flex; align-items: center; gap: 5px; }
.subcategory-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }
.subcategory-chip { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: white; color: #625a52; cursor: pointer; font-size: 10px; font-weight: 600; transition: border-color .15s ease,background .15s ease,color .15s ease; }
.subcategory-chip:hover { border-color: #e3d6b8; }
.subcategory-chip.is-active { border-color: var(--espresso); background: var(--espresso); color: white; }
.browse-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 13px; }
.sort-label { color: #a8a29e; font-size: 10px; font-weight: 600; }
.sort-select { height: 32px; padding: 0 25px 0 10px; border: 1px solid var(--line); border-radius: 11px; background-color: white; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a8a29e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; color: #625a52; cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 600; appearance: none; transition: border-color .15s ease; }
.sort-select:hover { border-color: #e3d6b8; }
.sort-select:focus-visible { outline: 2px solid var(--espresso); outline-offset: 1px; }
.browse-panel { animation: panel-in .22s ease both; }
.load-more { width: 100%; margin-top: 14px; }
.results-summary { margin: 9px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.recipe-grid[aria-busy="true"] { opacity: .45; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.recipe-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.recipe-card-shell { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 3px 12px rgba(28,25,23,.035); transition: border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.recipe-card-shell:hover { transform: translateY(-2px); border-color: #f3d37a; box-shadow: 0 10px 24px rgba(28,25,23,.07); }
.recipe-card { display: flex; width: 100%; min-width: 0; align-items: center; gap: 12px; padding: 16px 54px 15px 16px; }
.recipe-favorite { position: absolute; top: 12px; right: 12px; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; color: #a8a29e; cursor: pointer; font-size: 15px; }
.recipe-favorite.is-favorite { border-color: #fecaca; background: #fff1f2; color: #e11d48; }
.recipe-category-icon { display: flex; width: 58px; height: 58px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #fde68a; border-radius: 17px; background: #fffbeb; font-size: 22px; }
.recipe-category-icon small { padding: 2px 5px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 7px; font-weight: 700; }
.recipe-card-copy { min-width: 0; flex: 1; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 5px; color: #a8a29e; font-size: 8px; }
.recipe-card h3 { margin: 4px 0 8px; font-family: "Plus Jakarta Sans",sans-serif; font-size: 11px; line-height: 1.4; }
.recipe-card-cost { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 7px; border-top: 1px solid #f5f5f4; }
.recipe-card-cost strong { font-size: 11px; }
.recipe-card-cost small { color: #a8a29e; font-size: 8px; }
.recipe-card-cost .per-serving { padding: 4px 6px; border-radius: 7px; background: #fef3c7; color: #92400e; font-weight: 700; white-space: nowrap; }
.recipe-card-cost > span { display: grid; min-width: 0; gap: 3px; }
.recipe-card-cost > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipe-price-comparison { margin: 0 0 22px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fffdfa; }
.recipe-price-comparison-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.recipe-price-comparison-heading h2 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 15px; }
.recipe-price-comparison-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.recipe-price-comparison-heading .best-price-label { flex: 0 0 auto; padding: 6px 8px; border-radius: 8px; background: #f0f8f1; font-size: 9px; }
.best-price-label { color: #15803d; font-size: 9px; }
.comparison-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.market-price-option { display: flex; min-width: 0; min-height: 48px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 6px 7px; border: 1px solid #ebe8e3; border-radius: 10px; background: white; color: #625a52; cursor: pointer; text-align: left; transition: background .15s ease,border-color .15s ease,transform .15s ease; }
.market-price-option:hover { transform: translateY(-1px); border-color: #d6c6a0; }
.market-price-option > span { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 3px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.market-price-option strong { color: var(--ink); font-size: 11px; }
.market-price-option.is-best { border-color: #bbdfc6; background: #f4fbf5; }
.market-price-option.is-best strong { color: #166534; }
.market-price-option.is-selected { box-shadow: inset 0 0 0 1px #a16207; }
.market-price-option.is-selected:not(.is-best) { border-color: #e7bd60; background: #fffaf0; }
.best-market-tag { padding: 2px 4px; border-radius: 5px; background: #dcefe1; color: #166534; font-size: 7px; font-weight: 700; }
.empty-state { grid-column: 1/-1; padding: 32px 16px; border: 1px dashed var(--line); border-radius: 18px; background: white; color: var(--muted); text-align: center; font-size: 12px; }

.page-heading { margin: 13px 0 22px; }
.eyebrow { color: #a8a29e; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.page-heading h1,.add-recipe-card h1 { margin: 6px 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: clamp(29px,5vw,39px); letter-spacing: -.05em; }
.accent { color: var(--saffron); }
.page-heading p,.account-card > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.basket-summary { display: flex; min-height: 143px; align-items: center; justify-content: space-between; padding: 24px 27px; border-radius: 22px; background: var(--espresso); color: white; }
.basket-summary-content { display: grid; justify-items: start; }
.eyebrow-light { color: #d6d3d1; }
.basket-summary strong { display: block; margin: 6px 0 3px; font-family: "Plus Jakarta Sans",sans-serif; font-size: 31px; letter-spacing: -.04em; }
.basket-market-control { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: #d6d3d1; font-size: 10px; }
.basket-market-control select { padding: 6px 9px; border: 1px solid #ffffff3d; border-radius: 10px; background: #ffffff12; color: white; cursor: pointer; font: inherit; }
.basket-market-control option { background: white; color: var(--ink); }
.basket-illustration { display: grid; width: 67px; height: 67px; place-items: center; border: 1px solid #ffffff24; border-radius: 50%; background: #ffffff10; font-size: 31px; }
.product-section { margin-top: 21px; }
.product-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.filter-tabs { display: flex; gap: 5px; }
.filter-tab { min-height: 35px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 600; }
.filter-tab span { margin-left: 4px; color: #a8a29e; }
.filter-tab.is-active { border-color: var(--espresso); background: var(--espresso); color: white; }
.filter-tab.is-active span { color: #fde68a; }
.product-search { max-width: 290px; min-height: 39px; border-radius: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.product-card { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.product-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #fffbeb; font-size: 21px; }
.product-copy { min-width: 0; flex: 1; }
.product-copy small { display: block; margin-bottom: 4px; color: #a8a29e; font-size: 8px; }
.product-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.product-copy span { display: block; margin-top: 4px; color: #a8a29e; font-size: 8px; }
.product-cost { flex: 0 0 auto; text-align: right; }
.product-cost strong { display: block; font-size: 11px; }
.product-cost small { color: #a8a29e; font-size: 8px; }
.save-product { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: white; color: #a8a29e; cursor: pointer; font-size: 16px; }
.save-product.is-saved { border-color: #fed7aa; background: #fff7ed; color: #ea580c; }

.account-card { padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.account-card h2 { margin: 6px 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 20px; letter-spacing: -.035em; }
.account-card form { display: grid; gap: 13px; margin-top: 19px; }
.form-field { display: grid; min-width: 0; gap: 6px; color: #57534e; font-size: 10px; font-weight: 600; }
.form-field small { color: #a8a29e; font-weight: 400; }
.form-field input,.form-field select,.form-field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fdfcfb; color: var(--ink); font-size: 11px; }
.form-field textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 46px; }
.password-toggle { position: absolute; top: 50%; right: 5px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #78716c; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { background: #fef3c7; color: #92400e; }
.password-toggle:focus-visible { outline: 2px solid var(--saffron-border); outline-offset: 1px; }
.password-toggle svg, .password-toggle img { width: 17px; height: 17px; }
.field-error { color: #b91c1c; font-size: 10px; font-weight: 500; line-height: 1.45; }
.form-field input[aria-invalid="true"] { border-color: #fca5a5; background: #fff8f8; }
.profile-main { display: flex; min-height: calc(100dvh - 194px); flex-direction: column; justify-content: center; }
.auth-card { width: min(408px, 100%); margin: 0 auto; padding: 24px; border-color: #edeae6; border-radius: 26px; box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 28px 56px -42px rgba(28,25,23,.4); }
.auth-card.is-signed-in { width: 100%; padding: 27px; border-radius: 22px; box-shadow: none; }
.auth-card .auth-head { display: flex; margin: -24px -24px 19px; padding: 19px 24px 16px; align-items: center; gap: 12px; border-radius: 25px 25px 0 0; background: linear-gradient(155deg, #fff7e8 0%, #fffcf6 58%, #ffffff 100%); }
.auth-card .auth-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: linear-gradient(140deg, #fbbf24, #d97706); box-shadow: 0 8px 18px -9px rgba(180,83,9,.65), inset 0 1px 0 rgba(255,255,255,.35); color: #fff; font-size: 18px; line-height: 1; }
.auth-card .auth-title { margin: 0; color: var(--ink); font-family: "Plus Jakarta Sans",sans-serif; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
.auth-providers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.provider-button { display: flex; min-height: 47px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e9e4de; border-radius: 14px; background: white; color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: -.01em; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.provider-button:hover { border-color: #d8d2ca; background: #fffdf8; }
.provider-button:active { transform: scale(.985); }
.provider-button:focus-visible { outline: 2px solid var(--saffron-border); outline-offset: 2px; }
.provider-icon { display: block; width: 17px; height: 17px; flex: 0 0 auto; }
.provider-label { line-height: 1; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 19px 0 13px; color: #a8a29e; font-size: 9px; font-weight: 600; letter-spacing: .01em; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; background: #f1eeea; content: ""; }
#auth-form { display: grid; gap: 11px; margin: 0; }
#auth-form .form-field { gap: 6px; color: #57534e; font-size: 10px; font-weight: 600; }
#auth-form .form-field > label { padding-left: 1px; }
#auth-form input { min-height: 46px; padding: 11px 13px; border-color: #ece9e5; border-radius: 13px; background: #fcfbf9; font-size: 13px; transition: border-color .15s ease, background .15s ease; }
#auth-form input:hover { border-color: #ded9d3; }
#auth-form input:focus { border-color: #d6d3d1; background: white; }
#auth-form input:focus-visible { outline: 2px solid #fcd34d; outline-offset: 1px; }
#auth-form .password-field input { padding-right: 46px; }
#auth-form .password-toggle { right: 6px; width: 34px; height: 34px; border-radius: 10px; }
#auth-form .field-error { padding-left: 2px; }
#auth-form input[aria-invalid="true"] { border-color: #fca5a5; background: #fff7f7; }
.auth-submit { min-height: 47px; margin-top: 5px; border-radius: 14px; font-size: 12.5px; letter-spacing: .01em; }
.auth-submit:hover { transform: none; background: #292524; }
.auth-submit:disabled { cursor: progress; opacity: .75; transform: none; }
.auth-switch { margin: 15px 0 0; color: #8a837c; font-size: 10px; text-align: center; }
.auth-switch-link { padding: 2px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: #d6d3d1; text-underline-offset: 3px; }
.auth-switch-link:hover { text-decoration-color: var(--saffron); }
.auth-loading { margin: 4px 0; padding: 7px 0; color: #a8a29e; font-size: 11px; text-align: center; }

.back-link { display: inline-block; margin: 0 0 17px; color: #a16207; font-size: 11px; font-weight: 600; }
.recipe-detail { padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.recipe-detail-head { display: flex; align-items: center; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid #f5f5f4; }
.recipe-detail-icon { display: grid; width: 59px; height: 59px; flex: 0 0 auto; place-items: center; border-radius: 18px; background: #fffbeb; font-size: 27px; }
.recipe-detail h1 { margin: 5px 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: clamp(19px,4vw,27px); letter-spacing: -.04em; }
.recipe-detail-head p { margin: 0; color: var(--muted); font-size: 10px; }
.recipe-detail-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 15px 0 20px; }
.recipe-detail-summary div { padding: 12px; border-radius: 12px; background: var(--cream); }
.recipe-detail-summary span { display: block; color: var(--muted); font-size: 9px; }
.recipe-detail-summary strong { display: block; margin-top: 4px; font-size: 12px; }
.servings-control { display: flex; width: max-content; align-items: center; gap: 12px; margin: 0 0 12px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; }
.servings-control button { width: 27px; height: 27px; border: 0; border-radius: 7px; background: #fef3c7; color: #92400e; cursor: pointer; }
.servings-control span { min-width: 70px; color: var(--muted); font-size: 10px; text-align: center; }
.ingredient-list { display: grid; gap: 7px; }
.ingredient-section { margin: 4px 0 0; color: #78716c; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ingredient-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid #f0eeeb; border-radius: 11px; color: #57534e; font-size: 10px; }
.ingredient-row strong { color: #92400e; white-space: nowrap; }
.recipe-detail-total { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.recipe-detail-total strong { color: #b45309; font-size: 16px; }
.detail-note { margin: 14px 0 0; color: #a8a29e; font-size: 9px; line-height: 1.5; }
.add-recipe-card h1 { margin-top: 7px; }

body[data-page="chat"] { display: flex; height: 100dvh; flex-direction: column; overflow: hidden; }
body[data-page="chat"] .site-header { flex: 0 0 auto; }
.chat-page { display: flex; width: 100%; height: calc(100dvh - 78px); min-height: 0; flex: 1; margin: 0; padding: 0; }
.chat-window { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; border: 0; border-radius: 0; background: white; box-shadow: none; }
.message-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#fbbf24,#d97706); color: white; font-size: 17px; font-weight: 700; }
.chat-welcome { display: none; width: min(100%, 620px); justify-items: center; gap: 12px; justify-self: center; text-align: center; }
.chat-messages.is-empty .chat-welcome { display: grid; }
.chat-welcome-icon { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid #f3daa0; border-radius: 21px; background: linear-gradient(145deg,#fff8d9,#ffedb3); color: #a16207; font-size: 28px; box-shadow: 0 8px 24px rgba(180,120,0,.1); }
.chat-welcome .eyebrow { margin-top: 6px; color: #a16207; font-size: 10px; }
.chat-welcome h1 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: clamp(26px,4vw,36px); letter-spacing: -.05em; }
.chat-welcome p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.chat-messages { display: grid; min-height: 0; flex: 1; grid-auto-rows: max-content; align-content: start; gap: 22px; overflow-y: auto; overscroll-behavior: contain; padding: 30px max(24px, calc((100vw - 860px) / 2)); background: #fffefd; }
.chat-messages.is-empty { align-content: center; }
.chat-messages.is-empty .chat-day-divider { display: none; }
.chat-day-divider { display: flex; align-items: center; gap: 12px; color: #b7b2ac; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.chat-day-divider::before,.chat-day-divider::after { height: 1px; flex: 1; background: #f0eeeb; content: ""; }
.message { display: flex; max-width: 90%; align-items: flex-start; gap: 9px; }
.message-user { justify-self: end; align-items: flex-end; }
.message-avatar,.user-avatar { width: 30px; height: 30px; border-radius: 11px; }
.message-avatar { background: #fef3c7; color: #a16207; font-size: 15px; }
.user-avatar { display: grid; flex: 0 0 auto; place-items: center; background: #e7e5e4; color: #57534e; font-size: 11px; font-weight: 700; }
.message-content { display: grid; min-width: 0; gap: 6px; }
.message-author { display: flex; align-items: center; gap: 8px; color: #5b554f; font-size: 11px; font-weight: 700; }
.message-author time { color: #b0aaa3; font-size: 8px; font-weight: 400; }
.message-user .message-author { justify-content: flex-end; }
.message-bubble { padding: 13px 16px; border: 1px solid #f0eeeb; border-radius: 4px 16px 16px 16px; background: white; color: #49443f; font-size: 14px; line-height: 1.7; }
.chat-messages:not(.is-empty) .message { width: min(100%, 820px); max-width: 100%; justify-self: center; }
.chat-messages:not(.is-empty) .message-user { justify-self: center; justify-content: flex-end; }
.message-user .message-bubble { border-color: #f9df9c; border-radius: 15px 4px 15px 15px; background: #fff8e6; }
.chat-recipe-card { display: flex; align-items: center; gap: 11px; margin-top: 8px; padding: 12px; border: 1px solid #eeeae2; border-radius: 14px; background: white; transition: border-color .15s ease,transform .15s ease; }
.chat-recipe-card:hover { transform: translateY(-1px); border-color: #f2c65d; }
.chat-recipe-icon { display: grid; width: 45px; height: 45px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #fff2d6; font-size: 22px; }
.chat-recipe-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.chat-recipe-copy > small { color: #a8a29e; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.chat-recipe-copy > strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 14px; line-height: 1.4; }
.chat-recipe-copy > span { color: #8a8177; font-size: 11px; }
.chat-recipe-copy b { color: #292524; font-size: 13px; }
.chat-recipe-copy i { margin-left: 5px; padding: 4px 6px; border-radius: 6px; background: #fef3c7; color: #92400e; font-style: normal; font-weight: 700; white-space: nowrap; }
.chat-recipe-arrow { color: #a16207; font-size: 17px; }
.chat-disclaimer { display: block; margin-top: 8px; color: #aaa39b; font-size: 8px; }
.chat-composer { flex: 0 0 auto; padding: 16px max(24px, calc((100vw - 860px) / 2)) 13px; border-top: 1px solid #f1efec; background: white; }
.composer-label { display: block; margin-bottom: 9px; color: #898179; font-size: 11px; font-weight: 600; }
.prompt-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.prompt-suggestions button { padding: 9px 13px; border: 1px solid #eeeae4; border-radius: 20px; background: #fffdfa; color: #625a52; cursor: pointer; font-size: 11px; transition: border-color .15s ease,background .15s ease; }
.prompt-suggestions button:hover { border-color: var(--saffron-border); background: #fff9e9; }
.chat-input-form { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 17px; border: 1px solid #e8e4de; border-radius: 18px; background: #fdfcfb; box-shadow: 0 3px 12px rgba(28,25,23,.04); }
.chat-input-form:focus-within { border-color: #e7bd60; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.chat-input-form input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.chat-input-form input::placeholder { color: #aaa39b; }
.chat-input-form button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 14px; background: #f4e3b2; color: #92400e; cursor: pointer; font-size: 23px; transition: background .15s ease; }
.chat-input-form button:hover { background: #fbd46f; }
.chat-input-form button:disabled,.chat-input-form input:disabled { cursor: not-allowed; opacity: .8; }
.composer-note { margin: 9px 2px 0; color: #9c948b; font-size: 10px; text-align: center; }

.mobile-nav { display: none; }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; padding: 12px 17px; border-radius: 12px; background: var(--espresso); box-shadow: 0 8px 24px #0002; color: white; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---- PC view ---- */
/* Desktop-only sizing. The base rules above stay mobile-sized, so every
   declaration below is scoped to widths where the PC layout is used. */
@media (min-width: 980px) {
  .site-header { min-height: 84px; padding: 0 max(32px, calc((100% - 1200px) / 2)); }
  .brand { min-width: 250px; gap: 12px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 16px; }
  .brand-mark img { width: 23px; height: 23px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 11px; }
  .main-nav { gap: 4px; }
  .nav-link { padding: 11px 18px; border-radius: 14px; font-size: 13.5px; }

  .page-container { width: min(1200px, calc(100% - 64px)); margin: 44px auto 96px; }
  .page-narrow { width: min(900px, calc(100% - 64px)); }

  .search-row { gap: 12px; margin-bottom: 32px; }
  .search-field { min-height: 52px; gap: 11px; padding: 0 18px; border-radius: 16px; }
  .search-field input { font-size: 14px; }
  .search-row > .button { min-height: 52px; padding: 0 26px; border-radius: 16px; font-size: 13.5px; }

  .section-title-row { margin-bottom: 16px; }
  .section-title-row h1,.section-title-row h2 { font-size: 22px; letter-spacing: -.03em; }
  .eyebrow { font-size: 10.5px; }
  .text-button { font-size: 12.5px; }

  .category-section { max-width: none; margin-bottom: 34px; }
  .category-featured,.category-grid { gap: 14px; }
  .category-featured { margin-bottom: 14px; }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-card { min-height: 120px; gap: 5px; padding: 18px 20px; border-radius: 20px; }
  .category-card-top { margin-bottom: 6px; }
  .category-card strong { font-size: 15px; }
  .category-card small { font-size: 11.5px; }
  .category-icon { width: 40px; height: 40px; border-radius: 14px; }
  .category-icon img { width: 22px; height: 22px; }
  .category-label { padding: 5px 9px; font-size: 9.5px; letter-spacing: .04em; }
  .category-featured .category-card { min-height: 132px; padding: 20px 24px; }
  .category-featured .category-card strong { font-size: 19px; }
  .category-featured .category-card small { font-size: 13px; }
  .category-featured .category-icon { width: 48px; height: 48px; border-radius: 16px; }
  .category-featured .category-icon img { width: 26px; height: 26px; }

  .browse-head { margin-bottom: 12px; }
  .back-link { margin-bottom: 20px; font-size: 12.5px; }
  .result-count { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  .result-count:empty { display: none; }
  .subcategory-row { gap: 8px; margin-bottom: 18px; }
  .subcategory-chip { min-height: 38px; padding: 0 15px; border-radius: 12px; font-size: 12px; }
  .results-notice { margin-bottom: 16px; padding: 12px 16px; font-size: 11.5px; }

  .recipe-section { max-width: none; }
  .recipe-grid { grid-template-columns: repeat(auto-fill,minmax(330px,1fr)); gap: 18px; }
  .recipe-card { gap: 15px; padding: 20px 60px 18px 20px; }
  .recipe-card h3 { margin: 6px 0 10px; font-size: 15px; }
  .recipe-meta { gap: 8px; font-size: 10px; }
  .recipe-category-icon { width: 66px; height: 66px; border-radius: 19px; }
  .recipe-category-icon small { padding: 3px 6px; font-size: 8.5px; }
  .recipe-card-cost { padding-top: 10px; }
  .recipe-card-cost strong { font-size: 13px; }
  .recipe-card-cost small { font-size: 9.5px; }
  .recipe-card-cost .per-serving { padding: 5px 8px; font-size: 9.5px; }
  .recipe-favorite { top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
  .empty-state { padding: 56px 24px; font-size: 14px; }
  .load-more { display: flex; width: max-content; min-width: 280px; min-height: 46px; margin: 24px auto 0; padding: 0 30px; font-size: 13px; }
  .results-summary { margin-top: 14px; font-size: 11px; }
}

/* ---- PC view: detail, prices, profile and chat pages ---- */
@media (min-width: 980px) {
  .recipe-detail { padding: 30px; }
  .recipe-detail-head { gap: 16px; padding-bottom: 20px; }
  .recipe-detail-icon { width: 68px; height: 68px; border-radius: 20px; }
  .recipe-detail h1 { font-size: 32px; }
  .recipe-detail-head p { font-size: 12px; }
  .recipe-detail-summary { gap: 12px; margin: 20px 0 26px; }
  .recipe-detail-summary div { padding: 15px 16px; border-radius: 14px; }
  .recipe-detail-summary span { font-size: 10.5px; }
  .recipe-detail-summary strong { font-size: 14px; }
  .servings-control { gap: 14px; padding: 6px; border-radius: 12px; }
  .servings-control button { width: 32px; height: 32px; border-radius: 9px; }
  .servings-control span { font-size: 12px; }
  .ingredient-list { gap: 9px; }
  .ingredient-section { font-size: 11.5px; }
  .ingredient-row { padding: 13px 15px; border-radius: 12px; font-size: 12px; }
  .recipe-detail-total { margin-top: 18px; padding-top: 18px; font-size: 13px; }
  .recipe-detail-total strong { font-size: 20px; }
  .detail-note { font-size: 11px; line-height: 1.6; }
  .recipe-preview { margin-top: 26px; }
  .recipe-preview h1 { font-size: 28px; }
  .recipe-steps { gap: 10px; padding-left: 22px; font-size: 13px; }
  .recipe-price-comparison { padding: 22px; border-radius: 18px; }
  .recipe-price-comparison-heading h2 { font-size: 18px; }
  .recipe-price-comparison-heading p { font-size: 12px; }
  .recipe-price-comparison-heading .best-price-label { padding: 7px 10px; font-size: 10.5px; }
  .comparison-options { gap: 10px; }
  .market-price-option { min-height: 60px; padding: 9px 11px; border-radius: 12px; }
  .market-price-option > span { font-size: 11px; }
  .market-price-option strong { font-size: 13.5px; }

}

/* ---- PC view: profile, forms and chat ---- */
@media (min-width: 980px) {
  .profile-main { min-height: calc(100dvh - 224px); }
  .account-card.auth-card { width: min(520px, 100%); padding: 30px; }
  .auth-card .auth-head { gap: 12px; }
  .auth-card .auth-mark { width: 44px; height: 44px; border-radius: 14px; }
  .auth-card .auth-title { font-size: 21px; }
  .provider-button { min-height: 50px; font-size: 13px; }
  #auth-form { gap: 14px; }
  #auth-form .form-field { font-size: 11.5px; }
  #auth-form input { min-height: 50px; padding: 12px 15px; font-size: 14px; }
  .auth-submit { min-height: 50px; font-size: 14px; }
  .auth-switch { font-size: 11.5px; }
  .auth-loading { font-size: 13px; }
  .account-card > p { font-size: 13px; }
  .account-card form { gap: 15px; margin-top: 22px; }

  body[data-page="add-recipe"] .page-container { width: min(780px, calc(100% - 64px)); }
  .add-recipe-card h1 { font-size: 34px; }
  .add-recipe-card .form-field { font-size: 11.5px; }
  .add-recipe-card input { min-height: 50px; font-size: 14px; }

  .chat-page { height: calc(100dvh - 84px); }
  .composer-label { font-size: 12px; }
  .prompt-suggestions button { font-size: 12px; }
  .composer-note { font-size: 11px; }
}

@media (min-width: 1240px) {
  .recipe-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .site-header { min-height: 63px; gap: 8px; padding: 0 12px; }
  .brand { min-width: 0; gap: 7px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 12px; font-size: 17px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 8px; }
  .main-nav { display: none; }
  .page-container,.page-narrow { width: calc(100% - 28px); margin-top: 15px; margin-bottom: 90px; }
  .search-row { gap: 7px; margin-bottom: 18px; }
  .search-field { min-height: 39px; gap: 7px; padding: 0 10px; border-radius: 16px; }
  .search-field input { font-size: 10px; }
  .search-row > .button { min-height: 39px; padding: 0 12px; }
  .category-section { margin-bottom: 16px; }
  .section-title-row h1,.section-title-row h2 { font-size: 13px; }
  .category-featured { gap: 8px; margin-bottom: 8px; }
  .category-featured .category-card { min-height: 83px; }
.category-featured .category-icon { width: 34px; height: 34px; border-radius: 12px; }
.category-featured .category-icon img { width: 20px; height: 20px; }
.category-featured .category-card strong { font-size: 12px; }
.category-featured .category-card small { font-size: 9px; }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .category-card { min-height: 76px; padding: 9px; border-radius: 16px; }
  .category-grid .category-card { min-height: 72px; }
  .category-icon { width: 31px; height: 31px; border-radius: 11px; font-size: 16px; }
  .section-title-row .text-button { font-size: 10px; white-space: nowrap; }
  .browse-head { margin-bottom: 5px; }
  .subcategory-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .subcategory-chip { min-height: 30px; padding: 0 9px; font-size: 9px; white-space: nowrap; }
  .recipe-grid,.product-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .comparison-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .market-price-option { min-height: 48px; padding: 7px 9px; }
  .market-price-option > span { font-size: 10px; }
  .market-price-option strong { font-size: 12px; }
  .recipe-card { gap: 10px; padding: 11px 45px 11px 11px; border-radius: 19px; }
  .recipe-favorite { top: 10px; right: 10px; }
  .recipe-category-icon { width: 53px; height: 53px; }
  .recipe-card h3 { font-size: 11px; }
  .recipe-card-cost { align-items: flex-end; }
  .recipe-card-cost > span small { max-width: 155px; }
  .recipe-price-comparison { margin-bottom: 18px; padding: 12px; }
  .recipe-price-comparison-heading { align-items: flex-start; }
  .recipe-price-comparison-heading h2 { font-size: 13px; }
  .recipe-price-comparison-heading p { font-size: 9px; }
  .recipe-price-comparison-heading .best-price-label { max-width: 105px; font-size: 8px; line-height: 1.35; text-align: center; }
  .page-heading { margin: 21px 0 17px; }
  .page-heading h1,.add-recipe-card h1 { font-size: 33px; }
  .page-heading p,.account-card > p { font-size: 10px; }
  .basket-summary { min-height: 120px; padding: 18px; border-radius: 18px; }
  .basket-summary strong { font-size: 27px; }
  .basket-illustration { width: 54px; height: 54px; font-size: 25px; }
  .product-toolbar { align-items: stretch; flex-direction: column; }
  .filter-tabs { align-self: flex-start; }
  .filter-tab { min-height: 33px; padding: 0 9px; font-size: 9px; }
  .product-search { max-width: none; }
  .product-card { padding: 10px; }
  .account-card { padding: 21px 17px; border-radius: 19px; }
  .form-row { gap: 8px; }
  .profile-main { min-height: calc(100dvh - 90px); padding-bottom: 78px; }
  .auth-card { padding: 20px 18px; border-radius: 22px; }
  .auth-card .auth-head { margin: -20px -18px 16px; padding: 16px 18px 14px; gap: 11px; border-radius: 21px 21px 0 0; }
  .auth-card .auth-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
  .auth-card .auth-title { font-size: 18px; }
  .auth-divider { margin: 17px 0 11px; }
  #auth-form { gap: 10px; }
  #auth-form input { min-height: 44px; font-size: 12.5px; }
  .provider-button { min-height: 45px; }
  .recipe-detail { padding: 16px; border-radius: 18px; }
  .recipe-detail-summary div { padding: 9px; }
  .mobile-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: flex; height: calc(62px + env(safe-area-inset-bottom)); justify-content: space-around; padding: 7px 15px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
  .mobile-nav a { display: flex; min-width: 61px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #a8a29e; font-size: 8px; font-weight: 600; }
  .mobile-nav a span { font-size: 17px; line-height: 1; }
  .mobile-nav a.is-active { color: #b45309; }
  .toast { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); left: 14px; text-align: center; }
  .chat-page { height: calc(100dvh - 63px - 62px - env(safe-area-inset-bottom)); flex: 0 0 auto; }
  .chat-welcome { gap: 9px; }
  .chat-welcome-icon { width: 52px; height: 52px; border-radius: 17px; font-size: 23px; }
  .chat-welcome .eyebrow { font-size: 8px; }
  .chat-welcome h1 { font-size: 25px; }
  .chat-welcome p { font-size: 12px; }
  .chat-messages { gap: 16px; padding: 16px 12px; }
  .message { max-width: 96%; gap: 6px; }
  .message-avatar,.user-avatar { width: 26px; height: 26px; border-radius: 9px; }
  .message-bubble { padding: 11px 12px; font-size: 12px; }
  .chat-recipe-card { gap: 8px; padding: 9px; }
  .chat-recipe-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
  .chat-recipe-copy > small { font-size: 8px; }
  .chat-recipe-copy > strong { font-size: 11px; }
  .chat-recipe-copy > span { font-size: 9px; }
  .chat-recipe-copy b { font-size: 11px; }
  .chat-recipe-copy i { display: inline-block; margin: 4px 0 0; }
  .chat-composer { padding: 7px 12px 8px; }
  .composer-label { margin-bottom: 7px; font-size: 9px; }
  .prompt-suggestions { gap: 5px; margin-bottom: 8px; }
  .prompt-suggestions button { padding: 7px 9px; font-size: 9px; }
  .chat-input-form { gap: 7px; padding: 5px 6px 5px 12px; }
  .chat-input-form input { height: 38px; font-size: 13px; }
  .chat-input-form button { width: 38px; height: 38px; border-radius: 12px; font-size: 21px; }
  .composer-note { margin-top: 7px; font-size: 8px; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* API-driven states: notices, recipe preview and chat result lists */
.results-notice { margin: 0 0 12px; padding: 9px 12px; border: 1px dashed #edd9a8; border-radius: 11px; background: #fffaf0; color: #92400e; font-size: 10px; line-height: 1.55; }
.recipe-detail-summary strong { display: block; margin-top: 4px; font-family: "Plus Jakarta Sans",sans-serif; font-size: 14px; }
.recipe-preview { margin-top: 18px; }
.recipe-preview h1 { margin: 5px 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: clamp(19px,4vw,25px); letter-spacing: -.04em; }
.recipe-preview h2.eyebrow { margin: 16px 0 9px; }
.recipe-preview .detail-note { margin-bottom: 14px; }
.recipe-steps { display: grid; gap: 9px; margin: 0 0 16px; padding-left: 18px; color: #57534e; font-size: 11px; line-height: 1.7; }
.chat-recipe-list { display: grid; gap: 8px; }
.chat-recipe-list:empty { display: none; }
.chat-recipe-list .chat-recipe-card { margin-top: 0; }

/* Google-only sign-in, live cost columns and the home rails */
.auth-providers { margin-top: 15px; }
.auth-providers-single { grid-template-columns: minmax(0,1fr); }
.basket-note { max-width: 36ch; margin: 0 0 4px; color: #d6d3d1; font-size: 9.5px; line-height: 1.5; }
a.product-card { color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
a.product-card:hover { transform: translateY(-1px); border-color: #f3d37a; background: #fffdfa; }
.product-cost small { white-space: nowrap; }
.recipe-detail-summary.has-cost { grid-template-columns: repeat(2,minmax(0,1fr)); }


/* ---- Cart (Καλάθι) ---------------------------------------------------- */
.recipe-cart { position: absolute; top: 12px; right: 48px; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; color: #a8a29e; cursor: pointer; }
.recipe-cart.is-in-cart { border-color: var(--saffron-border); background: var(--saffron-light); }
.cart-count { display: inline-grid; min-width: 17px; height: 17px; place-items: center; margin-left: 4px; padding: 0 4px; border-radius: 9px; background: var(--saffron); color: var(--ink); font-size: 9px; font-weight: 700; line-height: 1; }
.cart-count[hidden] { display: none; }
.mobile-nav .cart-count { position: absolute; margin: -22px 0 0 18px; }
.mobile-nav a { position: relative; }
#cart-view { display: grid; gap: 18px; }

/* ---- Shop (Προϊόντα) ---------------------------------------------------- */

/* ======================================================================================================
   Design refresh: one consistent set of buttons, icon buttons, chips, loading and motion.
   (Kept at the end of the file so it wins over the older rules above.)
   ====================================================================================================== */
:root {
  --shadow-sm: 0 1px 2px rgba(28,25,23,.05), 0 2px 8px rgba(28,25,23,.04);
  --shadow-md: 0 2px 4px rgba(28,25,23,.05), 0 12px 28px -8px rgba(28,25,23,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --rose: #e11d48;
}
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: #fde68a; color: var(--ink); }
main { animation: page-in .28s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* UI glyphs drawn with a mask: they take the colour of the text around them */
.ui-ico { display: inline-block; width: 1.15em; height: 1.15em; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: transform .2s var(--ease); }

/* Buttons */
.button { min-height: 46px; padding: 0 20px; border-radius: 14px; font-size: 13px; font-weight: 600; letter-spacing: -.005em; transition: transform .15s var(--ease), background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-dark { background: var(--espresso); color: #fff; box-shadow: 0 1px 2px rgba(28,25,23,.2), 0 6px 14px -6px rgba(28,25,23,.45); }
.button-dark:hover { background: #2b2623; box-shadow: 0 1px 2px rgba(28,25,23,.2), 0 10px 20px -8px rgba(28,25,23,.5); }
.button-outline, .button-light { border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.button-outline:hover, .button-light:hover { border-color: #d6d3d1; background: #fffdfa; }
.button-wide { flex: 1 1 200px; }
.button.is-on { border: 1px solid var(--saffron-border); background: #fef3c7; color: #92400e; box-shadow: none; }
.button.is-on:hover { background: #fde68a; }
.button.is-favorite { border: 1px solid #fecdd3; background: #fff1f2; color: var(--rose); box-shadow: none; }
.button .ui-ico { font-size: 17px; }
.recipe-detail .form-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.text-button { padding: 6px 4px; font-size: 12px; transition: color .15s ease; }
.text-button:hover { color: #92400e; text-decoration: underline; text-underline-offset: 3px; }

/* Icon buttons on the recipe cards: heart and cart, stacked at the right */
.recipe-card { padding-right: 64px; }
.recipe-favorite, .recipe-cart { position: absolute; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #78716c; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), background .15s ease, color .15s ease, border-color .15s ease; }
.recipe-favorite { top: 12px; }
.recipe-cart { top: 56px; }
.recipe-favorite .ui-ico, .recipe-cart .ui-ico { width: 19px; height: 19px; }
.recipe-favorite:hover { color: var(--rose); border-color: #fecdd3; background: #fff7f8; }
.recipe-cart:hover { color: #92400e; border-color: var(--saffron-border); background: var(--saffron-light); }
.recipe-favorite:active, .recipe-cart:active { transform: scale(.9); }
.recipe-favorite.is-favorite { border-color: #fecdd3; background: #fff1f2; color: var(--rose); }
.recipe-favorite.is-favorite .ui-ico { animation: pop .38s var(--ease); }
.recipe-cart.is-in-cart { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.recipe-cart.is-in-cart .ui-ico { animation: pop .38s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 55% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* Chips and segmented controls */
.filter-tab, .subcategory-chip { min-height: 38px; padding: 0 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s var(--ease); }
.filter-tab:hover:not(.is-active), .subcategory-chip:hover:not(.is-active) { border-color: #d6d3d1; background: #fffdfa; color: var(--ink); }
.filter-tab:active, .subcategory-chip:active { transform: scale(.97); }
.filter-tabs { flex-wrap: wrap; gap: 6px; }
.sort-select { height: 38px; border-radius: 999px; font-size: 12.5px; }

/* Cards */
.recipe-card-shell, .category-card { box-shadow: var(--shadow-sm); }
.recipe-card-shell:hover, .category-card:hover { box-shadow: var(--shadow-md); }
.category-card { transition: border-color .15s ease, background .15s ease, transform .15s var(--ease), box-shadow .15s ease; }
.category-card:hover { transform: translateY(-2px); }
.recipe-card-cost .per-serving { padding: 5px 9px; border-radius: 999px; font-size: 12px; }
.search-field { box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.search-field:focus-within { border-color: #e7bd60; box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
.search-field input:focus-visible { outline: none; }

/* Header */
.site-header { box-shadow: 0 1px 0 rgba(28,25,23,.04); backdrop-filter: saturate(1.4) blur(14px); }
.nav-link { position: relative; font-size: 13px; }
.nav-link.is-active { box-shadow: inset 0 0 0 1px var(--saffron-border); }
.cart-count { margin-left: 6px; min-width: 18px; height: 18px; font-size: 10.5px; }

/* Loading */
.spinner { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border: 2px solid #e7e5e4; border-top-color: var(--saffron); border-radius: 50%; vertical-align: -3px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state.is-loading { padding: 38px 16px; }
.recipe-grid[aria-busy="true"] { opacity: .55; transition: opacity .2s ease; }

/* Toast */
.toast { right: 50%; bottom: 24px; padding: 13px 20px; border-radius: 999px; font-size: 13px; font-weight: 500; transform: translate(50%, 12px); transition: opacity .2s ease, transform .25s var(--ease); }
.toast.is-visible { transform: translate(50%, 0); }

/* Recipe page: ingredients with prices */
.recipe-ingredients { margin: 4px 0 6px; }
.recipe-ingredients h2 { margin: 18px 0 10px; }
.ingredient-prices { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ingredient-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #f0eeeb; border-radius: 12px; background: #fff; font-size: 13px; }
.ingredient-price strong { font-weight: 600; }
.ingredient-price small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.ingredient-price b { color: #92400e; white-space: nowrap; }
.ingredient-price.is-unpriced b, .ingredient-price.is-unpriced small { color: #a8a29e; }
.ingredient-price em { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #f5f5f4; color: #78716c; font-size: 10px; font-style: normal; font-weight: 600; }
.recipe-detail-total { font-size: 13px; }
.detail-note { font-size: 11.5px; }

/* Cart: where to shop */

/* Phones */
@media (max-width: 979px) {
  .page-container, .page-narrow { width: calc(100% - 32px); margin-top: 20px; }
  .recipe-card h3 { font-size: 14px; }
  .recipe-meta { font-size: 11px; }
  .recipe-card-cost strong { font-size: 13px; }
  .recipe-card-cost small { font-size: 11px; }
  .recipe-category-icon small { font-size: 9px; }
  .category-card strong { font-size: 13px; }
  .category-card small { font-size: 11px; }
  .eyebrow { font-size: 10.5px; }
  .section-title-row h2 { font-size: 18px; }
  .search-field input { font-size: 14px; }
  .mobile-nav a { font-size: 10px; }
  .mobile-nav a.is-active { color: #b45309; }
}

/* Mobile cart badge: pin it to the top-right corner of the basket icon. The old rule left it unpositioned and the
   generic `.mobile-nav a span` rule made its text 17px. */
.mobile-nav a { position: relative; }
.mobile-nav .cart-count { position: absolute; top: 2px; left: calc(50% + 5px); margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 1; border: 2px solid #fff; box-sizing: content-box; }

/* Toast on mobile: sit above the bottom nav (the desktop `bottom: 24px` rule above would cover it). */
@media (max-width: 700px) {
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); max-width: calc(100vw - 28px); }
}


/* ===========================================================================
   Cart page (mobile first). Classes are prefixed `c-`; the JS is renderCart() in js/app-v.1.js.
   Base styles = phone; the @media block at the end only widens things.
   =========================================================================== */
body[data-page="cart"] .cart-heading { margin: 4px 0 14px; }
body[data-page="cart"] .cart-heading h1 { margin: 0; font-size: 28px; }
#cart-view { gap: 16px; }

.c-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.c-section { display: grid; gap: 10px; }
.c-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.c-head h2 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.c-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; border-radius: 999px; background: #f5f2ee; color: #78716c; font-size: 11px; font-weight: 700; }
.c-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.c-hint.is-error, .c-item small.is-error { color: #b91c1c; }

/* Hero: the total */
.c-hero { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 20px 20px 18px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(245,158,11,.30), transparent 55%), linear-gradient(160deg, #292524, #1c1917); box-shadow: 0 14px 30px -14px rgba(28,25,23,.55); }
.c-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: #d6d3d1; font-size: 12px; font-weight: 500; }
.c-hero-total { font-family: "Plus Jakarta Sans",sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.c-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.c-hero-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #f5f5f4; font-size: 11.5px; font-weight: 500; }
.c-hero-warn { margin: 6px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(245,158,11,.18); color: #fde68a; font-size: 12px; line-height: 1.45; }

/* Settings: two segmented controls */
.c-settings { display: grid; gap: 14px; padding: 14px; }
.c-field-wrap { display: grid; gap: 10px; }
.c-field { display: grid; gap: 7px; }
.c-label { color: #a8a29e; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.c-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 14px; background: #f5f2ee; }
.c-seg-btn { min-height: 44px; padding: 4px 6px; border: 0; border-radius: 11px; background: transparent; color: #78716c; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.c-seg-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,25,23,.14); }

/* Supermarket comparison: swipeable cards */
.c-compare { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.c-compare::-webkit-scrollbar { display: none; }
.c-store-card { flex: 0 0 132px; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); text-align: left; scroll-snap-align: start; }
.c-store-card-name { overflow: hidden; color: #57534e; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.c-store-card strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 18px; letter-spacing: -.03em; }
.c-store-card small { color: #a8a29e; font-size: 11px; }
.c-store-card.is-cheapest { border-color: var(--saffron-border); background: linear-gradient(180deg, #fffbeb, #fff); }
.c-store-card.is-cheapest small { color: #b45309; font-weight: 700; }

/* Recipes and hand-picked products */
.c-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.c-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.c-item-main { display: grid; flex: 1; min-width: 0; gap: 2px; color: inherit; text-decoration: none; }
.c-item-main strong { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.c-item-main small { color: var(--muted); font-size: 12px; }
.c-icon-btn { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #a8a29e; cursor: pointer; font-size: 18px; transition: background .15s ease, color .15s ease; }
.c-icon-btn:hover, .c-icon-btn:active { background: #fee2e2; color: #dc2626; }
.c-stepper { display: flex; flex: 0 0 auto; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #faf8f5; }
.c-stepper button { width: 32px; height: 36px; padding: 0; border: 0; background: transparent; color: #57534e; cursor: pointer; font-size: 18px; line-height: 1; }
.c-stepper button:active { color: var(--ink); background: #f0ebe5; }
.c-stepper input { width: 46px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.c-stepper input::-webkit-outer-spin-button, .c-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.c-stepper input:focus { outline: none; background: #fff; }
.c-add { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #d6d0c8; border-radius: 16px; color: #92400e; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.c-add:active { background: #fffbeb; }

/* Shopping list: one card per supermarket */
.c-store { overflow: hidden; }
.c-store header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f0ebe5; background: #faf8f5; }
.c-store-name { font-family: "Plus Jakarta Sans",sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.c-store-sum { padding: 3px 10px; border-radius: 999px; background: var(--espresso); color: #fff; font-size: 12.5px; font-weight: 700; }
.c-lines { margin: 0; padding: 0 14px; list-style: none; }
.c-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; }
.c-line + .c-line { border-top: 1px solid #f3efe9; }
.c-line-main { display: grid; min-width: 0; gap: 3px; }
.c-line-main strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.c-line-main small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.c-buy { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; font-weight: 700; }
.c-used { overflow: hidden; color: #a8a29e !important; font-size: 11.5px !important; text-overflow: ellipsis; white-space: nowrap; }
.c-deal { padding: 1px 6px; border-radius: 6px; background: #dcfce7; color: #166534; font-size: 10.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.c-price { flex: 0 0 auto; padding-top: 1px; color: var(--ink); font-size: 14.5px; font-weight: 700; white-space: nowrap; }

/* Collapsible extras */
.c-fold { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.c-fold > summary { display: flex; align-items: center; gap: 8px; padding: 13px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none; }
.c-fold > summary::-webkit-details-marker { display: none; }
.c-fold > summary::after { content: "›"; margin-left: auto; color: #a8a29e; font-size: 20px; line-height: 1; transition: transform .2s var(--ease); }
.c-fold[open] > summary::after { transform: rotate(90deg); }
.c-fold.is-warn .c-count { background: #fef3c7; color: #92400e; }
.c-fold .c-hint { padding: 0 14px 6px; }
.c-notes { display: grid; margin: 0; padding: 0 14px 6px; list-style: none; }
.c-notes li { display: grid; gap: 1px; padding: 9px 0; border-top: 1px solid #f3efe9; }
.c-notes strong { font-size: 13px; font-weight: 600; }
.c-notes small { color: var(--muted); font-size: 12px; }

.c-clear { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; background: transparent; color: #b91c1c; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.c-clear:active { background: #fee2e2; }
.c-footnote { margin: 0 6px; color: #a8a29e; font-size: 11.5px; line-height: 1.5; text-align: center; }

/* Empty cart */
.c-empty { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border: 1px dashed #d6d0c8; border-radius: 24px; background: #fff; text-align: center; }
.c-empty-icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: #fef3c7; }
.c-empty h2 { margin: 6px 0 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 19px; letter-spacing: -.03em; }
.c-empty p { max-width: 30ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.c-empty-actions { display: grid; gap: 8px; width: 100%; max-width: 280px; margin-top: 10px; }

@media (min-width: 700px) {
  body[data-page="cart"] .cart-heading h1 { font-size: 36px; }
  #cart-view { gap: 20px; }
  .c-hero { padding: 26px 28px 24px; }
  .c-hero-total { font-size: 54px; }
  .c-settings { grid-template-columns: 1.4fr 1fr; align-items: start; padding: 16px; gap: 18px; }
  .c-compare { margin: 0; padding: 2px 0 6px; }
  .c-store-card { flex-basis: 160px; }
  .c-empty-actions { grid-auto-flow: column; max-width: none; width: auto; }
}


/* ===========================================================================
   Profile page (mobile first). Classes are prefixed `p-`; the JS is js/pages/profile-hub-v.1.js.
   =========================================================================== */
body[data-page="profile"] .account-card.auth-card.is-signed-in { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-page="profile"] .profile-main:has(.is-signed-in) { min-height: 0; justify-content: flex-start; }
body[data-page="profile"] #logout { margin-top: 22px; }
body[data-page="profile"] #profile-view { display: grid; gap: 0; }

#profile-hub > div { display: grid; gap: 14px; }
.p-muted { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.p-error { color: #b91c1c; font-size: 12.5px; }
.p-link { padding: 6px 2px; border: 0; background: transparent; color: #b45309; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.p-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.p-label { color: #a8a29e; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.p-price { font-size: 15px; font-weight: 700; }

/* Hero */
.p-hero { display: grid; gap: 16px; padding: 18px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(245,158,11,.30), transparent 55%), linear-gradient(160deg, #292524, #1c1917); box-shadow: 0 14px 30px -14px rgba(28,25,23,.55); }
.p-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.p-avatar { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 18px; background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; font-family: "Plus Jakarta Sans",sans-serif; font-size: 20px; font-weight: 800; }
.p-person h2 { margin: 0; overflow: hidden; color: #fff; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.p-person p { margin: 2px 0 0; overflow: hidden; color: #d6d3d1; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.p-stat { display: grid; gap: 2px; padding: 10px 4px; border: 0; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font: inherit; text-align: center; transition: background .15s ease; }
.p-stat:hover, .p-stat:active { background: rgba(255,255,255,.18); }
.p-stat strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.p-stat span { color: #d6d3d1; font-size: 10.5px; line-height: 1.2; }
.p-stat.is-hot { background: rgba(34,197,94,.22); }
.p-stat.is-hot strong { color: #86efac; }

/* Tabs */
.p-tabs { position: sticky; z-index: 5; top: 63px; display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px; padding: 8px 14px; background: rgba(250,248,245,.94); backdrop-filter: blur(12px); scrollbar-width: none; }
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab { position: relative; display: inline-flex; flex: 0 0 auto; min-height: 40px; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #78716c; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.p-tab .ui-ico { font-size: 15px; }
.p-tab.is-active { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.p-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff; }
.p-panel { display: grid; gap: 12px; }

/* Cards and actions */
.p-list { display: grid; gap: 10px; }
.p-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.p-card > * { grid-column: 1 / -1; }
.p-card > .p-card-main { grid-column: 1; }
.p-card > .p-chip { grid-column: 2; grid-row: 1; align-self: start; }
.p-card-main { display: grid; min-width: 0; gap: 3px; color: inherit; text-decoration: none; }
.p-card-main strong { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.p-card-main small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.p-chip { padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-cost { font-size: 13px; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.p-pill { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #44403c; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; transition: background .15s ease, border-color .15s ease; }
.p-pill:hover:not(:disabled) { border-color: #d6d0c8; background: #faf8f5; }
.p-pill:disabled { cursor: default; opacity: .45; }
.p-pill .ui-ico { font-size: 14px; }
.p-pill.is-on { border-color: var(--saffron-border); background: #fef3c7; color: #92400e; }
.p-pill.is-del { color: #b91c1c; }
.p-icon-btn { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #a8a29e; cursor: pointer; font-size: 18px; }
.p-actions .p-icon-btn:first-of-type { margin-left: auto; }
.p-icon-btn.is-fav { color: #e11d48; }
.p-icon-btn.is-edit { color: #ca8a04; }
.p-icon-btn.is-edit:hover { background: #fef9c3; }
.p-icon-btn.is-del:hover, .p-icon-btn.is-fav:hover { background: #fee2e2; color: #dc2626; }
.p-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.p-more summary { cursor: pointer; color: #78716c; font-size: 12.5px; font-weight: 600; }
.p-more[open] summary { margin-bottom: 8px; }
.p-steps { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 20px; color: #44403c; font-size: 13px; line-height: 1.5; }

.p-empty { display: grid; justify-items: center; gap: 8px; padding: 36px 20px; border: 1px dashed #d6d0c8; border-radius: 22px; background: #fff; text-align: center; }
.p-empty-icon { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 50%; background: #fef3c7; color: #b45309; font-size: 26px; }
.p-empty h3 { margin: 4px 0 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 17px; letter-spacing: -.02em; }
.p-empty p { max-width: 34ch; margin: 0 0 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* Forms */
.p-field { display: grid; gap: 5px; }
.p-field > span { color: #78716c; font-size: 12px; font-weight: 600; }
.p-field input, .p-field select, .p-field textarea, .p-qty input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfb; color: var(--ink); font: inherit; font-size: 14px; }
.p-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.p-field input:focus, .p-field select:focus, .p-field textarea:focus, .p-qty input:focus, .p-search input:focus { border-color: #e7bd60; box-shadow: 0 0 0 3px rgba(245,158,11,.15); outline: none; }
.p-row3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.p-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-editor { gap: 14px; }
.p-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-editor-head h3 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 16px; letter-spacing: -.02em; }
.p-block { display: grid; gap: 8px; }
.p-ingredients { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.p-ingredients li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.p-ingredients:not(.is-edit) li { border-bottom: 1px solid #f3efe9; }
.p-ingredients:not(.is-edit) b { font-weight: 650; white-space: nowrap; }
.p-ingredients.is-edit li { padding: 6px 6px 6px 12px; border: 1px solid #f0ebe5; border-radius: 12px; background: #faf8f5; }
.p-ingredients.is-edit li > span:first-child { flex: 1; min-width: 0; }
.p-qty { display: inline-flex; align-items: center; gap: 6px; }
.p-qty input { width: 78px; min-height: 36px; padding: 6px 8px; font-size: 14px; text-align: right; }
.p-qty em { min-width: 28px; color: #78716c; font-size: 12px; font-style: normal; }
.p-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfb; color: #a8a29e; }
.p-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.p-results { display: grid; gap: 6px; }
.p-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid #f0ebe5; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; }
.p-result.is-button { width: 100%; cursor: pointer; }
.p-result.is-button:hover { border-color: var(--saffron-border); background: #fffdf6; }
.p-result strong { display: block; font-size: 13.5px; font-weight: 600; }
.p-result small { color: var(--muted); font-size: 12px; }

/* Menu */
.p-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.p-day { display: grid; justify-items: center; gap: 5px; padding: 9px 0 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #78716c; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 650; }
.p-day i { width: 6px; height: 6px; border-radius: 50%; background: #e7e5e4; }
.p-day i.is-half { background: #fbbf24; }
.p-day i.is-full { background: #22c55e; }
.p-day.is-today:not(.is-active) { border-color: var(--saffron); color: #b45309; }
.p-day.is-active { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.p-day-title { margin: 2px 2px 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 17px; letter-spacing: -.02em; }
.p-day-title em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 2px; }
.p-meals { display: grid; gap: 10px; }
.p-meal { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.p-meal-main { display: grid; gap: 2px; }
.p-meal-main strong { font-size: 14.5px; font-weight: 650; }
.p-meal-main a { color: inherit; text-decoration: none; }
.p-meal-main small { color: var(--muted); font-size: 12.5px; }
.p-meal-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-add { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #d6d0c8; border-radius: 14px; background: transparent; color: #92400e; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.p-add:active { background: #fffbeb; }
.p-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fef3c7; color: #78350f; font-size: 13px; line-height: 1.4; }
.p-picker { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--saffron-border); border-radius: 18px; background: #fffdf6; }
.p-week { gap: 12px; }
.p-week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.p-budget { display: grid; gap: 6px; }
.p-budget-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.p-budget-row strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 24px; letter-spacing: -.03em; }
.p-bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #f0ebe5; }
.p-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #f59e0b); transition: width .4s var(--ease); }
.p-bar-track.is-over i { background: #ef4444; }

/* Alerts */
.p-note { gap: 10px; }
.p-note p { margin: 4px 0 0; }
.p-alert-form { gap: 12px; }
.p-alert.is-cheap { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff 60%); box-shadow: 0 0 0 3px rgba(34,197,94,.10), var(--shadow-sm); }
.p-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f5f2ee; color: #78716c; font-size: 11.5px; font-weight: 700; }
.p-badge.is-cheap { background: #22c55e; color: #fff; }
.p-alert-nums { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.p-alert-nums > div { display: grid; gap: 3px; }
.p-alert-nums span { color: #a8a29e; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.p-alert-nums b { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.p-alert-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.p-settings { gap: 14px; }
.p-settings > strong { font-size: 14.5px; }
.p-settings .p-muted { margin: -6px 0 0; }

@media (min-width: 700px) {
  .p-hero { padding: 24px 26px; gap: 20px; }
  .p-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 23px; }
  .p-person h2 { font-size: 22px; }
  .p-stat { padding: 14px 6px; }
  .p-stat strong { font-size: 24px; }
  .p-stat span { font-size: 12px; }
  .p-tabs { top: 78px; margin: 0; padding: 8px 0; }
  .p-meals { grid-template-columns: 1fr 1fr; }
}


/* iPhone browsers (Safari AND Chrome: both use WebKit) zoom the page when a focused field has a font size under 16px, and
   often stay zoomed, breaking the layout. Force 16px on touch screens; desktop keeps the smaller type. */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}


/* Recipe editor: one box per step, plus separate notes */
.p-step-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.p-step { display: flex; align-items: flex-start; gap: 8px; }
.p-step-num { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; margin-top: 8px; border-radius: 50%; background: var(--espresso); color: #fff; font-size: 12.5px; font-weight: 700; }
.p-step textarea { flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fdfcfb; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
.p-step textarea:focus { border-color: #e7bd60; box-shadow: 0 0 0 3px rgba(245,158,11,.15); outline: none; }
.p-step .p-icon-btn { margin-top: 5px; }
.p-notes { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; }
.p-notes p { margin: 4px 0 0; color: #57534e; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }


/* "New conversation": a slim bar at the top of the chat window, only once there is a conversation to leave. */
.chat-bar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; padding: 8px max(16px, calc((100vw - 860px) / 2)); border-bottom: 1px solid #f3efe9; background: #fff; }
.chat-bar[hidden] { display: none; }
.chat-bar-title { color: #a8a29e; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chat-new { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; padding: 0 14px 0 10px; border: 1px solid var(--saffron-border); border-radius: 999px; background: #fffbeb; color: #92400e; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; transition: background .15s ease; }
.chat-new .ui-ico { width: 16px; height: 16px; background: currentColor; }
.chat-new:hover:not(:disabled) { background: #fef3c7; }
.chat-new:disabled { cursor: default; opacity: .5; }


/* Chat like a messenger: the user's messages on the right, the assistant's on the left. */
.message { justify-content: flex-start; }
.message-content { max-width: min(100%, 540px); }
.message-user { justify-content: flex-end; }
.message-user .message-content { justify-items: end; }
.message-user .user-avatar { display: none; }
.message-user .message-bubble { text-align: left; }


/* "AI βοηθός" next to the search field: an icon-only square (same height as the field) on phones, with its label on wide screens. */
.search-row > .search-ai { flex: 0 0 auto; width: 46px; min-height: 46px; padding: 0; border-radius: 14px; }
.search-ai-label { display: none; }
@media (max-width: 700px) {
  .search-row > .search-ai { width: 43px; min-height: 43px; border-radius: 13px; }
  .search-row > .search-ai img { width: 20px; height: 20px; }
}
@media (min-width: 900px) {
  .search-row > .search-ai { width: auto; min-height: 52px; padding: 0 20px; border-radius: 16px; }
  .search-ai-label { display: inline; }
}


/* ===========================================================================
   User menu (js/pages/user-menu-v.1.js): drop-down on desktop, bottom sheet on phones.
   =========================================================================== */
.um { position: relative; display: inline-flex; }
.main-nav .um > .nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; }
.um-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.um-avatar.is-big { width: 42px; height: 42px; font-size: 15px; }
.um-caret { width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; opacity: .6; transform: rotate(45deg); transition: transform .2s var(--ease); }
.um:hover .um-caret, .um:focus-within .um-caret { transform: rotate(225deg) translate(-2px, -2px); }
.um-menu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 280px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 44px -12px rgba(28,25,23,.28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .2s var(--ease), visibility .16s; }
.um-menu::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
.um:hover .um-menu, .um:focus-within .um-menu { opacity: 1; visibility: visible; transform: none; }
.um-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.um-head > div { display: grid; min-width: 0; gap: 1px; }
.um-head strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.um-head small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.um-list { display: grid; gap: 1px; padding: 6px 0; border-top: 1px solid #f3efe9; border-bottom: 1px solid #f3efe9; }
.um-item { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 550; text-align: left; text-decoration: none; }
.um-item:hover, .um-item:focus-visible { background: #faf8f5; outline: none; }
.um-item .ui-ico { font-size: 18px; color: #78716c; }
.um-count { margin-left: auto; min-width: 20px; padding: 2px 7px; border-radius: 999px; background: var(--saffron); color: var(--ink); font-size: 11px; font-weight: 800; text-align: center; }
.um-out { margin-top: 6px; color: #b91c1c; }
.um-out .ui-ico { color: #b91c1c; }

.um-mini { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; font-weight: 800; }
.mobile-nav a .um-mini { font-size: 10px; line-height: 1; }
.mobile-nav a.is-active .um-mini { box-shadow: 0 0 0 2px #fde68a; }

.um-sheet { position: fixed; z-index: 60; inset: 0; }
.um-sheet[hidden] { display: none; }
.um-backdrop { position: absolute; inset: 0; background: rgba(28,25,23,.5); opacity: 0; transition: opacity .22s ease; }
.um-panel { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 14px; max-width: 560px; margin: 0 auto; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -18px 50px -12px rgba(28,25,23,.35); transform: translateY(100%); transition: transform .26s var(--ease); }
.um-sheet.is-open .um-backdrop { opacity: 1; }
.um-sheet.is-open .um-panel { transform: none; }
.um-handle { width: 42px; height: 4px; justify-self: center; border-radius: 999px; background: #e0dad2; }
.um-panel .um-head { padding: 4px 2px 0; }
.um-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.um-tile { position: relative; display: grid; align-content: space-between; gap: 14px; min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: #faf8f5; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.25; text-decoration: none; transition: transform .15s var(--ease), border-color .15s ease; }
.um-tile:active { transform: scale(.97); border-color: var(--saffron-border); }
.um-tile .ui-ico { width: 26px; height: 26px; color: #b45309; }
.um-tile .um-count { position: absolute; top: 12px; right: 12px; margin: 0; }
.um-profile { width: 100%; }
.um-signout { min-height: 40px; border: 0; background: transparent; color: #b91c1c; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
body.um-locked { overflow: hidden; }

/* ===========================================================================
   Cart: "Τέλος καλαθιού" bar and the success card
   =========================================================================== */
#cart-view { padding-bottom: 76px; }
.c-finish { position: fixed; z-index: 15; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); left: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 22px; background: var(--espresso); box-shadow: 0 12px 30px -8px rgba(28,25,23,.5); color: #fff; }
.c-finish-info { display: grid; line-height: 1.15; }
.c-finish-info small { color: #d6d3d1; font-size: 11px; }
.c-finish-info strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 19px; letter-spacing: -.03em; }
.c-finish .c-finish-btn { min-height: 46px; border-radius: 15px; background: #fff; color: var(--ink); box-shadow: none; white-space: nowrap; }
.c-success { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; border: 1px solid #bbf7d0; border-radius: 26px; background: linear-gradient(180deg, #f0fdf4, #fff 70%); text-align: center; }
.c-success-icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; font-size: 32px; box-shadow: 0 10px 24px -8px rgba(34,197,94,.6); }
.c-success h2 { margin: 6px 0 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 21px; letter-spacing: -.03em; }
.c-success p { margin: 0; color: var(--muted); font-size: 14px; }
.c-success-go { width: 100%; max-width: 340px; min-height: 52px; margin-top: 10px; }
.c-success-all { padding: 8px; color: #92400e; font-size: 13px; font-weight: 600; }

/* ===========================================================================
   Shopping lists page (js/pages/lists-page-v.1.js)
   =========================================================================== */
#lists-root { display: grid; gap: 14px; }
body[data-page="lists"] .l-heading { margin: 4px 0 0; }
body[data-page="lists"] .l-heading h1 { margin: 0; font-size: 28px; }
.l-guest { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fef3c7; color: #78350f; font-size: 13px; line-height: 1.45; }
.l-guest a { font-weight: 700; text-decoration: underline; }
.l-tabs .c-count { margin-left: 4px; }
.l-cards { display: grid; gap: 10px; }
.l-card { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: transform .15s var(--ease), border-color .15s ease; }
.l-card:active { transform: scale(.985); border-color: var(--saffron-border); }
.l-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.l-card-top strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 15.5px; letter-spacing: -.02em; }
.l-card-total { font-size: 15px; font-weight: 800; }
.l-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.l-stores { display: flex; flex-wrap: wrap; gap: 6px; }
.l-stores span { padding: 2px 9px; border-radius: 999px; background: #f5f2ee; color: #57534e; font-size: 11.5px; font-weight: 600; }
.l-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #f0ebe5; }
.l-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #22c55e); transition: width .35s var(--ease); }
.l-progress.is-light { background: rgba(255,255,255,.18); }
.l-progress.is-light i { background: #4ade80; }

.l-back { color: #78716c; font-size: 13px; font-weight: 600; text-decoration: none; }
.l-hero { display: grid; gap: 10px; padding: 18px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(245,158,11,.30), transparent 55%), linear-gradient(160deg, #292524, #1c1917); box-shadow: 0 14px 30px -14px rgba(28,25,23,.55); }
.l-hero.is-finished { background: radial-gradient(120% 140% at 100% 0%, rgba(34,197,94,.38), transparent 55%), linear-gradient(160deg, #14532d, #052e16); }
.l-hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.l-hero-top h1 { margin: 0; color: #fff; font-family: "Plus Jakarta Sans",sans-serif; font-size: 17px; letter-spacing: -.02em; }
.l-hero-top span { color: #d6d3d1; font-size: 12.5px; }
.l-hero-count { display: flex; align-items: baseline; gap: 8px; }
.l-hero-count strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.l-hero-count span { color: #d6d3d1; font-size: 14px; }
.l-hero-sums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.l-hero-sums > div { display: grid; gap: 2px; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.1); }
.l-hero-sums small { color: #d6d3d1; font-size: 11px; }
.l-hero-sums b { font-size: 16px; font-weight: 750; }
.l-finished { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 18px; background: #f0fdf4; color: #166534; }
.l-finished > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; font-size: 18px; }
.l-finished > div { display: grid; gap: 1px; }
.l-finished small { color: #4d7c5f; font-size: 12px; }
.l-hint { margin: 0; color: #a8a29e; font-size: 12.5px; line-height: 1.5; text-align: center; }

.l-store { overflow: hidden; }
.l-store header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f0ebe5; background: #faf8f5; }
.l-store header > div { display: grid; flex: 1; min-width: 0; }
.l-store header strong { font-family: "Plus Jakarta Sans",sans-serif; font-size: 14px; letter-spacing: -.02em; }
.l-store header small { color: var(--muted); font-size: 12px; }
.s-badge.is-none { background: #f0ebe5; color: #78716c; }
.l-rows { margin: 0; padding: 0; list-style: none; }
.l-row { position: relative; overflow: hidden; }
.l-row + .l-row { border-top: 1px solid #f3efe9; }
.l-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #fff; font-size: 13.5px; font-weight: 800; }
.l-bg > span { display: none; align-items: center; gap: 6px; }
.l-row.is-right .l-bg { background: #22c55e; }
.l-row.is-left .l-bg { background: #ef4444; justify-content: flex-end; }
.l-row.is-right .l-bg-ok, .l-row.is-left .l-bg-skip { display: inline-flex; }
.l-row.is-ready .l-bg > span { transform: scale(1.1); }
.l-fg { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: #fff; touch-action: pan-y; }
.l-tick { position: relative; width: 44px; height: 44px; flex: 0 0 auto; margin: -8px -4px -8px -10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.l-tick::before { content: ""; position: absolute; top: 9px; left: 9px; width: 26px; height: 26px; border: 2px solid #d6d0c8; border-radius: 9px; background: #fff; transition: border-color .15s ease, background .15s ease, transform .15s var(--ease); }
.l-tick:hover::before { border-color: #22c55e; }
.l-tick:active::before { transform: scale(.9); background: #dcfce7; border-color: #22c55e; }
.l-main { display: grid; flex: 1; min-width: 0; gap: 2px; }
.l-main strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.l-main small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.l-used { overflow: hidden; color: #a8a29e !important; font-size: 11.5px !important; text-overflow: ellipsis; white-space: nowrap; }
.l-price { flex: 0 0 auto; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.l-skip { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d0cac2; cursor: pointer; font-size: 20px; line-height: 1; }
.l-skip:hover { background: #fee2e2; color: #dc2626; }
.l-rows.is-done { padding: 0 14px 6px; }
.l-done-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f3efe9; }
.l-mark { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; font-size: 14px; line-height: 1; }
.l-done-row.is-skipped .l-mark { background: #e7e5e4; color: #78716c; }
.l-done-row.is-skipped .l-main { opacity: .6; }
.l-when { color: #a8a29e; font-size: 11.5px; }
.l-fold-sum { margin-left: 6px; color: var(--muted); font-size: 12.5px; font-style: normal; font-weight: 600; }
.l-recipes { margin: 0 6px; color: var(--muted); font-size: 12.5px; line-height: 1.55; text-align: center; }
.l-recipes a { color: #92400e; font-weight: 600; }

.l-snack { position: fixed; z-index: 25; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); left: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin: 0 auto; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--espresso); box-shadow: 0 12px 30px -8px rgba(28,25,23,.5); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .25s var(--ease); }
.l-snack.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.l-snack span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-snack button { flex: 0 0 auto; padding: 8px 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fde68a; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }

@media (max-width: 700px) {
  body[data-page="cart"] .toast { bottom: calc(138px + env(safe-area-inset-bottom)); }
}

@media (min-width: 700px) {
  .c-finish { right: auto; bottom: 24px; left: 50%; width: min(520px, calc(100% - 48px)); transform: translateX(-50%); }
  .l-snack { bottom: 24px; }
  body[data-page="lists"] .l-heading h1 { font-size: 36px; }
  .l-hero { padding: 24px 26px; }
}


/* Cart: actions inside the total card (the floating bar below stays too) */
.c-hero-actions { display: flex; gap: 8px; margin-top: 8px; }
.c-hero-actions button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.c-hero-finish { flex: 1; background: #fff; color: var(--ink); }
.c-hero-finish:active { background: #f5f2ee; }
.c-hero-clear { background: rgba(255,255,255,.12); color: #fecaca; }
.c-hero-clear:hover, .c-hero-clear:active { background: rgba(239,68,68,.28); color: #fff; }
.c-hero-actions .ui-ico { font-size: 17px; }

/* Desktop: leave room under the page content for the floating "Τέλος καλαθιού" bar so it never covers text. */
@media (min-width: 700px) {
  #cart-view { padding-bottom: 130px; }
}


/* ===========================================================================
   Sign-in (js/app-v.1.js signInCardMarkup): hero panel + form, one premium card.
   =========================================================================== */
.account-card.auth-card:has(.si) { width: min(900px, 100%); padding: 0; overflow: hidden; border-radius: 28px; border-color: #ece7e1; box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 34px 70px -40px rgba(28,25,23,.45); }
.si { display: grid; }
.si-hero { position: relative; display: grid; align-content: start; gap: 12px; padding: 24px 22px; overflow: hidden; color: #fff; background: radial-gradient(90% 80% at 100% 0%, rgba(245,158,11,.38), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(251,191,36,.16), transparent 60%), linear-gradient(160deg, #292524, #1c1917); }
.si-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 10px 22px -8px rgba(217,119,6,.7); }
.account-card .si-title { margin: 6px 0 0; color: #fff; font-family: "Plus Jakarta Sans",sans-serif; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.si-lead { margin: 0; color: #d6d3d1; font-size: 14px; line-height: 1.55; }
.si-points { display: grid; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.si-points li { display: flex; align-items: center; gap: 12px; }
.si-point-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); color: #fcd34d; font-size: 19px; }
.si-points strong { display: block; font-size: 14px; font-weight: 650; }
.si-points small { display: block; color: #d6d3d1; font-size: 12.5px; line-height: 1.4; }
.si-form { display: grid; align-content: center; gap: 12px; padding: 24px 22px 26px; background: #fff; }
.account-card .si-welcome { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.si-sub { margin: -4px 0 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.si-buttons { display: grid; gap: 10px; }
.si-buttons .provider-button { position: relative; min-height: 52px; border-radius: 16px; font-size: 14.5px; font-weight: 650; box-shadow: var(--shadow-sm); }
.si-apple { border-color: #1c1917; background: #1c1917; color: #fff; }
.si-apple:hover { border-color: #292524; background: #292524; }
.si-apple-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.si-soon { position: absolute; top: 50%; right: 14px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fde68a; font-size: 10.5px; font-style: normal; font-weight: 700; transform: translateY(-50%); }
.si-note { margin: 4px 0 0; color: #a8a29e; font-size: 12px; line-height: 1.5; text-align: center; }
.si .field-error { font-size: 12.5px; text-align: center; }

@media (min-width: 760px) {
  .si { grid-template-columns: 1.05fr 1fr; min-height: 470px; }
  .si-hero { padding: 38px 34px; gap: 14px; }
  .account-card .si-title { font-size: 31px; }
  .si-points { gap: 16px; margin-top: 16px; }
  .si-form { padding: 38px 38px 40px; gap: 14px; }
}


/* Cart: icon-only "empty" button on the left of the total card, finish on the right */
.c-hero-actions .c-hero-clear { flex: 0 0 auto; width: 48px; padding: 0; font-size: 20px; }
.c-hero-actions .c-hero-finish { flex: 1; }

/* Sign-in on a phone: the form comes first, the dark info panel after it. The "Σύντομα" tag sits inline after the label. */
.si-soon { position: static; margin-left: 2px; transform: none; }


/* ---- Sign-in on a phone ------------------------------------------------------------------------------------------
   A dark brand header, the white sign-in sheet sliding up over it (rounded top corners), then the benefits as light tiles.
   `.si-hero` becomes `display: contents`, so its two blocks (.si-top, .si-perks) and the form can be ordered freely. */
.si-top { display: grid; gap: 12px; align-content: start; }
.si-perks-label { display: none; }
@keyframes si-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 759px) {
  .account-card.auth-card:has(.si) { border-radius: 32px; box-shadow: 0 24px 60px -30px rgba(28,25,23,.5); }
  .si { grid-template-columns: minmax(0, 1fr); }
  .si-hero { display: contents; }

  .si-top { position: relative; z-index: 0; order: 0; overflow: hidden; gap: 10px; padding: 28px 24px 64px; color: #fff; background: radial-gradient(90% 90% at 100% 0%, rgba(245,158,11,.42), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(251,191,36,.16), transparent 60%), linear-gradient(160deg, #2c2724, #1c1917); }
  .si-top::after { content: ""; position: absolute; right: -40px; bottom: -34px; width: 210px; height: 210px; background: url("assets/icons/logo.svg") center / contain no-repeat; opacity: .08; pointer-events: none; }
  .si-mark { width: 52px; height: 52px; border-radius: 17px; }
  .account-card .si-title { margin-top: 8px; font-size: 30px; line-height: 1.12; }
  .si-lead { max-width: 30ch; font-size: 14.5px; }

  .si-form { position: relative; z-index: 1; order: 1; gap: 12px; margin-top: -34px; padding: 26px 20px 10px; border-radius: 32px 32px 0 0; background: #fff; box-shadow: 0 -16px 30px -20px rgba(28,25,23,.5); animation: si-rise .55s var(--ease) both; }
  .account-card .si-welcome { font-size: 24px; }
  .si-sub { margin: -2px 0 8px; font-size: 14.5px; }
  .si-buttons .provider-button { min-height: 56px; border-radius: 18px; font-size: 15px; }
  .si-note { display: none; }

  .si-perks { order: 2; display: grid; gap: 10px; padding: 14px 20px 26px; background: #fff; }
  .si-perks-label { display: block; margin: 0; color: #a8a29e; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .si-points { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; color: var(--ink); }
  .si-points li { gap: 10px; padding: 10px 12px; border: 1px solid #f0ebe5; border-radius: 16px; background: #faf8f5; }
  .si-point-icon { width: 34px; height: 34px; border-radius: 11px; background: #fef3c7; color: #b45309; font-size: 18px; }
  .si-points strong { color: var(--ink); font-size: 13px; line-height: 1.25; }
  .si-points small { display: none; }
}


/* Shopping list rows: cancel on the left, the tick box on the right (thumb side), smooth exit animation */
.l-fg { padding: 10px 6px 10px 6px; gap: 6px; }
.l-skip { width: 34px; height: 34px; margin: 0; transition: background .2s ease, color .2s ease; }
.l-skip.is-skipping { background: #fee2e2; color: #dc2626; }
.l-main { padding: 0 2px; }
.l-tick { width: 52px; height: 52px; margin: -6px -2px -6px 2px; }
.l-tick::before { top: 12px; left: 12px; width: 28px; height: 28px; border-radius: 10px; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.l-tick::after { content: ""; position: absolute; top: 17px; left: 23px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.6px 2.6px 0; transform: rotate(45deg) scale(0); transform-origin: 70% 70%; transition: transform .2s var(--ease) .04s; }
.l-tick.is-checking::before { border-color: #22c55e; background: #22c55e; transform: scale(1.08); }
.l-tick.is-checking::after { transform: rotate(45deg) scale(1); }
.l-bg { transition: background .2s ease; }
.l-row { will-change: height; }
.l-row.is-collapsing { opacity: 0; border-top-color: transparent; transition: height .26s var(--ease), opacity .26s ease; }
.l-fg { will-change: transform; }
.l-bg > span { transition: transform .2s var(--ease); }


/* ===========================================================================
   Products page (prices-v.1.html), e-shop layout. JS: js/pages/shop-page-v.1.js.
   Phone first: 2 product tiles per row, one filter row. 3 tiles from 720px, 4 from 1040px.
   =========================================================================== */
body[data-page="prices"] .shop-main { width: calc(100% - 24px); margin-bottom: 110px; }
/* on a phone the title would only push the products down: it stays for screen readers */
body[data-page="prices"] .shop-heading { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
body[data-page="prices"] .shop-heading h1 { margin: 0; font-size: 26px; }

/* ---- top bar: search + filters in ONE grid (they sit side by side on a wide screen) ------------------------------- */
.shop-top { position: sticky; z-index: 6; top: 63px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; margin: 0 -12px 8px; padding: 8px 12px 6px; background: rgba(250,248,245,.94); backdrop-filter: blur(12px); }
.shop-search { grid-column: 1 / 3; grid-row: 1; margin: 0; }
.shop-top:not(:has(.s-toggle)) .shop-search { grid-column: 1 / -1; }
.shop-toolbar:not([hidden]), .s-tools { display: contents; }
.s-toggle { grid-column: 3; grid-row: 1; }
.s-select { position: relative; display: block; min-width: 0; grid-row: 2; }
.s-select:nth-of-type(1) { grid-column: 1; }
.s-select:nth-of-type(2) { grid-column: 2 / -1; }
.shop-top:not(:has([data-retailer-select])) .s-select { grid-column: 1 / -1; }
.shop-search-field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border: 1px solid #e7e2dc; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(28,25,23,.05), 0 8px 20px -12px rgba(28,25,23,.3); color: #a8a29e; transition: border-color .15s ease, box-shadow .15s ease; }
.shop-search-field:focus-within { border-color: #e7bd60; box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.shop-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.shop-search-field input::-webkit-search-cancel-button { display: none; }
.shop-clear { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f5f2ee; color: #78716c; cursor: pointer; font-size: 20px; line-height: 1; }
.shop-clear[hidden] { display: none; }

.s-select select { width: 100%; height: 40px; padding: 0 34px 0 14px; border: 1px solid #e7e2dc; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2378716c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
.s-select select:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
.s-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 1px solid #e7e2dc; border-radius: 999px; background: #fff; color: #57534e; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 650; transition: background .15s ease, color .15s ease; }
.s-toggle-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #dcfce7; color: #166534; font-size: 13px; font-weight: 800; }
.s-toggle-text { display: none; }
.s-toggle.is-active { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.s-toggle.is-active .s-toggle-icon { background: #22c55e; color: #fff; }

/* ---- the results grid ----------------------------------------------------------------------------------------------- */
.shop-results { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: stretch; gap: 10px; }
.s-feed, .s-group { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
/* everything that is not a product tile spans the whole row */
.shop-results > :not(.t-card):not(.s-pending),
.s-feed > :not(.t-card):not(.s-pending),
.s-group > :not(.t-card):not(.s-pending) { grid-column: 1 / -1; }
.results-summary { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* ---- shared small pieces --------------------------------------------------------------------------------------------- */
.s-title { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.s-link { padding: 6px 2px; border: 0; background: transparent; color: #b45309; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
.s-muted { margin: 0; color: var(--muted); font-size: 13px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 4px; scrollbar-width: none; }
.s-scroll::-webkit-scrollbar { display: none; }
.s-chip { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid #e7e2dc; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); color: #57534e; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.s-chip:hover { border-color: #d6d0c8; }
.s-chip.is-active { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.s-badge { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: hsl(var(--h) 60% 90%); color: hsl(var(--h) 45% 28%); font-size: 14px; font-weight: 800; }
.s-badge.is-none { background: #f0ebe5; color: #78716c; }
.s-tag, .s-diff, .s-offer { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.s-tag { background: var(--saffron); color: var(--ink); }
.s-diff { background: #f5f2ee; color: #78716c; }
.s-offer { background: #dcfce7; color: #166534; }
.s-path { display: block; overflow: hidden; color: #a8a29e; font-size: 11.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.s-none { display: grid; justify-items: center; gap: 6px; padding: 34px 18px; border: 1px dashed #d6d0c8; border-radius: 20px; background: #fff; text-align: center; }
.s-none p { margin: 0; color: var(--muted); font-size: 13px; }
.s-none strong { font-size: 15px; }
.s-none-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
@keyframes s-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- start screen: categories + recent searches --------------------------------------------------------------------- */
.s-start { display: grid; gap: 16px; }
.s-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.s-tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 100px; padding: 12px 6px; border: 1px solid #ece7e1; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; transition: transform .15s var(--ease), border-color .15s ease, box-shadow .15s ease; }
.s-tile img { width: 30px; height: 30px; box-sizing: content-box; padding: 6px; border-radius: 12px; background: #fff7e6; }
.s-tile:hover { border-color: var(--saffron-border); box-shadow: var(--shadow-md); }
.s-tile:active { transform: scale(.96); }
.s-tile.is-skel { border-color: transparent; background: linear-gradient(90deg, #f3efe9 25%, #faf7f3 50%, #f3efe9 75%); background-size: 200% 100%; animation: s-shimmer 1.3s linear infinite; box-shadow: none; }
.s-recent { display: grid; gap: 10px; }
.s-recent-head { display: flex; align-items: center; justify-content: space-between; }

/* ---- inside a category ------------------------------------------------------------------------------------------------ */
.s-crumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px 6px; overflow-x: auto; color: #a8a29e; font-size: 13px; white-space: nowrap; scrollbar-width: none; }
.s-crumbs::-webkit-scrollbar { display: none; }
.s-crumbs button { padding: 6px 2px; border: 0; background: transparent; color: #92400e; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.s-crumbs b { color: var(--ink); font-weight: 700; }
.s-browse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.s-browse-head h2 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 22px; letter-spacing: -.03em; }
.s-browse-head small { color: var(--muted); font-size: 12.5px; }
.s-subnav { display: grid; gap: 8px; }
.s-sub-title { margin: 0 2px; color: #a8a29e; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.s-group { padding-top: 6px; }
.s-group + .s-group, .s-feed > .t-card + .s-group, .s-feed > .s-group + .t-card { margin-top: 8px; padding-top: 16px; border-top: 1px solid #ece7e1; }
.s-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.s-group-head h3 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 17px; letter-spacing: -.03em; }
.s-open { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px dashed #d6d0c8; border-radius: 12px; background: transparent; color: #92400e; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.s-open:active { background: #fffbeb; }
.s-nav { display: flex; width: 100%; min-height: 60px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ece7e1; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: transform .15s var(--ease), border-color .15s ease; }
.s-nav:hover { border-color: var(--saffron-border); }
.s-nav:active { transform: scale(.985); }
.s-nav-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #fff7e6; }
.s-nav-main { display: grid; flex: 1; min-width: 0; gap: 1px; }
.s-nav-main strong { font-size: 14.5px; font-weight: 650; }
.s-nav-main small { color: var(--muted); font-size: 12px; }
.s-nav-main .s-path { margin: 0; }
.s-nav-go { color: #a8a29e; font-size: 24px; line-height: 1; }

/* ---- the product tile -------------------------------------------------------------------------------------------------- */
.t-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #ece7e1; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s var(--ease), border-color .18s ease; }
.t-card.is-listed { border-color: #86efac; box-shadow: 0 0 0 1px #bbf7d0 inset, var(--shadow-sm); }
.t-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; padding: 12px 12px 8px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.t-body .s-path { display: none; }
.shop-results[data-mode="search"] .t-body .s-path { display: block; }
.t-body h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: auto; }
.t-price b { font-family: "Plus Jakarta Sans",sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.t-price small { color: #78716c; font-size: 12px; font-weight: 600; }
.t-store { display: flex; min-width: 0; align-items: center; gap: 6px; color: #57534e; font-size: 12px; font-weight: 600; }
.t-store .s-badge { width: 20px; height: 20px; border-radius: 7px; font-size: 11px; }
.t-store-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-more { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #a8a29e; font-size: 11.5px; font-weight: 600; }
.t-more-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-add { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; margin: 0 10px 10px; border: 0; border-radius: 12px; background: var(--espresso); color: #fff; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; transition: transform .15s var(--ease), background .15s ease; }
.t-add span { font-size: 19px; font-weight: 400; line-height: 1; }
.t-add:active { transform: scale(.96); background: #44403c; }
.t-stepper { display: grid; min-height: 40px; grid-template-columns: 40px minmax(0, 1fr) 40px; margin: 0 10px 10px; overflow: hidden; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; }
.t-stepper button { padding: 0; border: 0; background: transparent; color: #166534; cursor: pointer; font: inherit; font-size: 20px; line-height: 1; }
.t-stepper button:active { background: #dcfce7; }
.t-stepper .t-qty { font-size: 13.5px; font-weight: 750; }

/* a search result that is still being checked, and the loading skeleton: tile-shaped */
.s-pending { display: grid; align-content: start; gap: 10px; min-height: 176px; padding: 14px 12px; border: 1px solid #ece7e1; border-radius: 18px; background: #fff; }
.s-pending i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #f3efe9 25%, #faf7f3 50%, #f3efe9 75%); background-size: 200% 100%; animation: s-shimmer 1.3s linear infinite; }
.s-pending i:nth-child(1) { width: 85%; height: 16px; }
.s-pending i:nth-child(2) { width: 50%; height: 22px; }
.s-pending i:nth-child(3) { width: 65%; }
.s-skel { display: grid; gap: 8px; padding: 14px; border: 1px solid #ece7e1; border-radius: 18px; background: #fff; }
.s-skel i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #f3efe9 25%, #faf7f3 50%, #f3efe9 75%); background-size: 200% 100%; animation: s-shimmer 1.3s linear infinite; }
.s-skel i:nth-child(1) { width: 50%; height: 18px; }
.s-skel i:nth-child(2) { height: 40px; }
.s-skel i:nth-child(3) { width: 75%; }

/* ---- price rows (details sheet + the hidden data of the tile) ---------------------------------------------------------- */
.s-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.s-rows[hidden] { display: none; }
.s-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f3efe9; }
.s-row:first-child { border-top: 0; }
.s-row.is-focus { background: #fffbeb; }
.s-row .s-badge { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.s-row-main { display: grid; flex: 1; min-width: 0; gap: 1px; }
.s-row-main strong { font-size: 13.5px; font-weight: 650; }
.s-row-main small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.s-row-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 5px; max-width: 46%; text-align: right; }
.s-row-price b { font-size: 14.5px; font-weight: 750; }
.s-row-price small { color: var(--muted); font-size: 11px; }

/* ---- quantity controls (details sheet) --------------------------------------------------------------------------------- */
.s-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.s-preset { min-height: 38px; padding: 0 14px; border: 1px solid #e7e2dc; border-radius: 999px; background: #faf8f5; color: #57534e; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.s-preset.is-active { border-color: var(--espresso); background: var(--espresso); color: #fff; }
.s-add-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.s-stepper { display: flex; flex: 0 0 auto; align-items: center; border: 1px solid #e7e2dc; border-radius: 14px; background: #faf8f5; }
.s-stepper button { width: 48px; height: 50px; padding: 0; border: 0; background: transparent; color: #57534e; cursor: pointer; font-size: 22px; line-height: 1; }
.s-stepper button:active { background: #f0ebe5; color: var(--ink); }
.s-stepper input { width: 72px; height: 50px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.s-stepper input::-webkit-outer-spin-button, .s-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.s-stepper input:focus { outline: none; background: #fff; }
.s-unit { color: #a8a29e; font-size: 13px; font-weight: 600; }
.s-est { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.s-est b { color: var(--ink); font-size: 14px; }
.s-est[hidden] { display: none; }
.s-submit { width: 100%; min-height: 52px; justify-content: center; border-radius: 16px; font-size: 15px; }
.s-remove { padding: 2px 6px; border: 0; background: transparent; color: #b91c1c; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 650; text-decoration: underline; }

/* ---- the details sheet ------------------------------------------------------------------------------------------------- */
.s-sheet { position: fixed; z-index: 70; inset: 0; }
.s-sheet[hidden] { display: none; }
.s-sheet-backdrop { position: absolute; inset: 0; background: rgba(28,25,23,.45); opacity: 0; transition: opacity .2s ease; }
.s-sheet-panel { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 12px; max-width: 560px; max-height: min(90dvh, 760px); margin: 0 auto; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -18px 50px -12px rgba(28,25,23,.35); overscroll-behavior: contain; transform: translateY(100%); transition: transform .26s var(--ease); }
.s-sheet.is-open .s-sheet-backdrop { opacity: 1; }
.s-sheet.is-open .s-sheet-panel { transform: none; }
.s-sheet-handle { width: 42px; height: 4px; justify-self: center; border-radius: 999px; background: #e0dad2; }
.s-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.s-sheet-head h3 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; }
.s-sheet-head small { color: var(--muted); font-size: 12.5px; }
.s-sheet-x { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f5f2ee; color: #57534e; cursor: pointer; font-size: 22px; line-height: 1; }
.s-sheet-rows { padding: 2px 12px; border: 1px solid #f0ebe5; border-radius: 16px; background: #faf8f5; }
.s-sheet-qty { display: grid; gap: 12px; }
.s-sheet-note { margin: 0; padding: 8px 10px; border-radius: 12px; background: #f0fdf4; color: #166534; font-size: 12.5px; line-height: 1.5; }

/* ---- floating list bar, above the mobile nav --------------------------------------------------------------------------- */
.shop-bar { position: fixed; z-index: 15; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 20px; background: var(--espresso); box-shadow: 0 12px 30px -8px rgba(28,25,23,.5); color: #fff; }
.shop-bar[hidden] { display: none; }
.s-bar-info { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.shop-bar .button { min-height: 42px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: none; white-space: nowrap; }

@media (max-width: 700px) {
  /* the floating list bar sits where the toast usually is */
  body[data-page="prices"] .toast { bottom: calc(138px + env(safe-area-inset-bottom)); }
}

/* ---- tablet and desktop ------------------------------------------------------------------------------------------------ */
@media (min-width: 700px) {
  body[data-page="prices"] .shop-main { width: min(1240px, calc(100% - 48px)); margin-bottom: 120px; }
  body[data-page="prices"] .shop-heading { position: static; width: auto; height: auto; margin: 6px 0 10px; overflow: visible; clip: auto; white-space: normal; }
  body[data-page="prices"] .shop-heading h1 { font-size: 34px; }
  .shop-top { top: 78px; margin: 0 0 18px; padding: 10px 0; gap: 8px 10px; }
  .s-select select { height: 44px; padding-left: 16px; font-size: 14px; }
  .s-scroll { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; }
  .s-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .s-tile { min-height: 116px; font-size: 13px; }
  .shop-results, .s-feed, .s-group { gap: 14px; }
  .t-card:hover { border-color: var(--saffron-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .t-body { gap: 7px; padding: 14px 14px 10px; }
  .t-body h3 { font-size: 15px; }
  .t-price b { font-size: 22px; }
  .t-add, .t-stepper { margin: 0 12px 12px; min-height: 44px; }
  .shop-bar { right: auto; bottom: 24px; left: 50%; width: min(520px, calc(100% - 48px)); transform: translateX(-50%); }
  /* the details sheet becomes a centred dialog */
  .s-sheet-panel { top: 50%; bottom: auto; width: min(520px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 20px 22px 22px; border-radius: 24px; opacity: 0; transform: translateY(-46%) scale(.97); transition: transform .22s var(--ease), opacity .18s ease; }
  .s-sheet.is-open .s-sheet-panel { opacity: 1; transform: translateY(-50%); }
  .s-sheet-handle { display: none; }
}
@media (min-width: 720px) {
  .shop-results, .s-feed, .s-group { --cols: 3; }
}
/* search and the three filters on ONE line (a narrower screen keeps the two-row bar above) */
@media (min-width: 900px) {
  .shop-top { grid-template-columns: minmax(240px, 1fr) auto auto auto; }
  .shop-top:not(:has(.s-tools)) { grid-template-columns: minmax(0, 1fr); }
  .shop-search, .shop-top:not(:has(.s-toggle)) .shop-search { grid-column: 1; grid-row: 1; }
  .s-toggle { grid-column: auto; grid-row: 1; width: auto; height: 46px; padding: 0 16px 0 8px; }
  .s-toggle-text { display: inline; }
  .s-select, .s-select:nth-of-type(1), .s-select:nth-of-type(2), .shop-top:not(:has([data-retailer-select])) .s-select { grid-column: auto; grid-row: 1; }
  .s-select select { min-width: 170px; height: 46px; }
  .shop-search-field { min-height: 46px; }
}
@media (min-width: 1040px) {
  .shop-results, .s-feed, .s-group { --cols: 4; }
  .s-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ===========================================================================
   Chat page with the server chatbot (js/pages/chat-page-v.1.js)
   =========================================================================== */
.chat-bar-title { min-width: 0; overflow: hidden; color: #57534e; font-size: 13px; font-weight: 650; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.chat-bar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.chat-history { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #57534e; cursor: pointer; font-size: 18px; }
.chat-history:hover { background: #faf8f5; }
.chat-gate { display: grid; justify-items: center; align-self: center; gap: 12px; width: min(100%, 420px); margin: auto; padding: 36px 20px; text-align: center; }
.chat-gate h1 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 22px; letter-spacing: -.03em; }
.chat-gate p { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.chat-messages:has(.chat-gate) { align-content: center; }

.message-bubble.is-rich { overflow-wrap: anywhere; }
.message-bubble.is-rich p { margin: 0; }
.message-bubble.is-rich p + p, .message-bubble.is-rich p + ul, .message-bubble.is-rich p + ol, .message-bubble.is-rich ul + p, .message-bubble.is-rich ol + p { margin-top: .6em; }
.message-bubble.is-rich ul, .message-bubble.is-rich ol { margin: 0; padding-left: 1.3em; }
.message-bubble.is-rich li + li { margin-top: .25em; }
.message-bubble.is-rich code { padding: 1px 5px; border-radius: 5px; background: #f5f2ee; font-size: .92em; }
.message-bubble.is-error { border-color: #fecaca; background: #fff5f5; color: #991b1b; }
.chat-retry { margin-left: 6px; padding: 3px 10px; border: 1px solid #fca5a5; border-radius: 999px; background: #fff; color: #b91c1c; cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; }
.chat-typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9c3bb; animation: chat-dot 1.1s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-cursor { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; border-radius: 2px; background: #d97706; vertical-align: -2px; animation: chat-blink 1s steps(2, start) infinite; }
@keyframes chat-blink { to { visibility: hidden; } }

.composer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.chat-usage { color: #78716c; font-weight: 600; }
.chat-usage.is-low { color: #b45309; }
.chat-usage.is-out { color: #b91c1c; }
.chat-input-form input:disabled { cursor: not-allowed; opacity: .6; }
.chat-input-form button:disabled { cursor: not-allowed; opacity: .45; }

/* the history of conversations: a bottom sheet on a phone, a side panel on a wide screen */
.ch-sheet { position: fixed; z-index: 70; inset: 0; }
.ch-sheet[hidden] { display: none; }
.ch-backdrop { position: absolute; inset: 0; background: rgba(28,25,23,.45); opacity: 0; transition: opacity .2s ease; }
.ch-panel { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 10px; max-width: 560px; height: min(78dvh, 640px); margin: 0 auto; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -18px 50px -12px rgba(28,25,23,.35); transform: translateY(100%); transition: transform .26s var(--ease); }
.ch-sheet.is-open .ch-backdrop { opacity: 1; }
.ch-sheet.is-open .ch-panel { transform: none; }
.ch-handle { width: 42px; height: 4px; justify-self: center; border-radius: 999px; background: #e0dad2; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ch-head h2 { margin: 0; font-family: "Plus Jakarta Sans",sans-serif; font-size: 18px; letter-spacing: -.02em; }
.ch-x { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f5f2ee; color: #57534e; cursor: pointer; font-size: 22px; line-height: 1; }
.ch-new { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #d6d0c8; border-radius: 14px; background: transparent; color: #92400e; cursor: pointer; font: inherit; font-size: 14px; font-weight: 650; }
.ch-list { display: grid; align-content: start; gap: 6px; overflow-y: auto; overscroll-behavior: contain; }
.ch-item { display: flex; align-items: center; gap: 4px; border: 1px solid #ece7e1; border-radius: 14px; background: #fff; }
.ch-item.is-current { border-color: var(--saffron-border); background: #fffbeb; }
.ch-open { display: grid; flex: 1; min-width: 0; gap: 2px; padding: 11px 12px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.ch-open strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ch-open small { color: #a8a29e; font-size: 12px; }
.ch-del { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #c9c3bb; cursor: pointer; font-size: 22px; line-height: 1; }
.ch-del:hover { background: #fee2e2; color: #dc2626; }
.ch-muted { margin: 0; padding: 18px 4px; color: var(--muted); font-size: 13.5px; text-align: center; }
.ch-muted.is-error { color: #b91c1c; }

@media (min-width: 700px) {
  .ch-panel { top: 0; right: 0; bottom: 0; left: auto; width: 380px; max-width: none; height: auto; margin: 0; padding: 18px 18px 18px; border-radius: 24px 0 0 24px; transform: translateX(100%); }
  .ch-sheet.is-open .ch-panel { transform: none; }
  .ch-handle { display: none; }
}
/* once a conversation has started the suggestions are not needed: more room for the messages */
.chat-window:has(.chat-messages:not(.is-empty)) .chat-suggestions { display: none; }
