:root{--forest:#173e32;--green:#245b48;--mint:#e5f0e9;--cream:#f7f6f1;--paper:#fff;--ink:#19231f;--muted:#7d8881;--line:#e7e9e5;--peach:#f8e3d5;--shadow:0 14px 34px rgba(23,62,50,.07)}
#catalog-status{margin:10px 0 5px;color:#52665a;font-size:12px}
#catalog-results{display:grid;gap:5px;max-height:280px;overflow:auto;list-style:none;margin:0;padding:0}
#catalog-results button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:10px 12px;background:#f5f9f5;border:1px solid #dce8de;border-radius:9px;text-align:left;color:var(--forest);font-size:13px}
#catalog-results button:hover,#catalog-results button:focus-visible{background:var(--mint)}
#catalog-results strong{white-space:nowrap}
#catalog-results button span{flex:1}
.product-photo{display:block;width:46px;height:46px;flex:none;object-fit:contain;border:1px solid #e5e8e3;border-radius:8px;background:#fff}
.item-photo-slot:empty{display:none}
*{box-sizing:border-box}
.add-quantity[hidden],.catalog-quantity[hidden]{display:none}
#catalog-results li{display:flex;flex-direction:column;min-width:0}
#catalog-results li>button{position:relative;width:100%;flex:1 0 auto;height:auto;padding-top:32px}
#catalog-results li>button::before{content:"";position:absolute;top:8px;left:10px;display:grid;place-items:center;width:17px;height:17px;border:1px solid #849b8c;border-radius:4px;background:#fff;color:var(--forest);font-size:14px;font-weight:800;line-height:1}
#catalog-results li>button[aria-pressed="true"]::before{content:"✓";border-color:var(--forest)}
#catalog-results button[aria-pressed="true"]{border-color:var(--green);background:var(--mint);box-shadow:inset 0 0 0 1px var(--green)}
.catalog-quantity{display:flex;flex:none;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-top:4px;padding:6px;border:1px solid #dce8de;border-radius:8px;background:#fff;color:var(--forest);font-size:12px}
.catalog-quantity input{width:52px;min-height:30px;border:1px solid #c9d9ce;border-radius:6px;padding-inline:4px;background:#fff;color:inherit}
#catalog-status{white-space:pre-line}
#catalog-results button{flex-wrap:wrap}
#catalog-results del{display:block;font-weight:400;color:#68776b}
.promo-label{display:block;margin-top:5px;padding:4px 6px;border-radius:6px;background:#fff0dc;color:#783a13;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
#catalog-results .promo-label{flex:0 0 100%}
[data-product-view="cards"] #catalog-results .promo-label{flex:initial}
@media(min-width:1000px){
  .app-shell:has(>.add-card){display:grid;grid-template-columns:minmax(330px,1fr) minmax(0,2fr);grid-template-rows:auto auto auto 1fr auto;column-gap:clamp(24px,3vw,48px);max-width:1720px;padding-inline:clamp(28px,4vw,72px)}
  .app-shell>.topbar,.app-shell>.intro,.app-shell>footer{grid-column:1/-1}
  .app-shell>.add-card{grid-column:1;grid-row:3;align-self:start}
  .app-shell>.list-section{grid-column:2;grid-row:3/5;min-width:0;padding-top:0}
  .app-shell>.checkout-panel{grid-column:1;grid-row:4;align-self:start;margin-top:16px}
  .checkout-panel .carrefour-card{flex-wrap:wrap}
  .checkout-panel .carrefour-copy{min-width:190px}
  .app-shell>.add-card .form-row{flex-wrap:wrap}
  .app-shell>.add-card .select-wrap{flex:1 1 40%;max-width:none}
  .app-shell>.add-card .add-button{flex:1;min-height:42px}
}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:18px 0 9px}
.list-toolbar #filters{margin:0}
.view-controls{display:flex;gap:4px}
.view-controls button{padding:7px 10px;border:1px solid #dce5dd;border-radius:8px;background:#fff;color:var(--forest);font-size:11px}
.view-controls button[aria-pressed="true"]{background:var(--forest);border-color:var(--forest);color:#fff}
[data-product-view="cards"] .category-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:9px}
[data-product-view="cards"] .category-title{grid-column:1/-1;margin-bottom:0}
[data-product-view="cards"] .item-row{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-height:204px;padding:34px 10px 10px;border:1px solid #e4e9e4;border-radius:12px}
[data-product-view="cards"] .check-button{position:absolute;top:8px;left:9px}
[data-product-view="cards"] .delete-item{position:absolute;top:6px;right:7px}
[data-product-view="cards"] .item-photo-slot{display:block;height:78px;background:#f7f9f6;border-radius:8px}
[data-product-view="cards"] .item-photo-slot:empty{display:block}
[data-product-view="cards"] .product-photo{width:100%;height:100%;border:0;background:transparent}
[data-product-view="cards"] .item-name{white-space:normal;overflow-wrap:anywhere}
[data-product-view="cards"] .item-meta{flex-wrap:wrap;gap:4px}
[data-product-view="cards"] #catalog-results{grid-template-columns:repeat(auto-fill,minmax(138px,1fr));max-height:420px}
[data-product-view="cards"] #catalog-results button{flex-direction:column;align-items:stretch;gap:7px;min-height:194px}
[data-product-view="cards"] #catalog-results .product-photo{height:100px}
.list-total:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:14px 16px;border:1px solid #e1ebe1;border-radius:13px;background:var(--mint);color:var(--forest)}
.list-total p{margin:4px 0 0;color:#52665a;font-size:12px}
#total-amount{white-space:nowrap;font-variant-numeric:tabular-nums}
.add-quantity{display:flex;align-items:center;gap:7px;padding:0 10px;min-height:42px;border:1px solid #e5e8e3;border-radius:11px;color:#536057;font-size:12px}
.add-quantity input{width:4.5ch;padding:2px;border:0;background:transparent;color:var(--forest);font-weight:700}
@media(max-width:560px){.form-row .add-button{flex:1 1 auto}}
body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button{cursor:pointer}
.app-shell{max-width:740px;margin:0 auto;padding:28px 28px 42px}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:0 0 30px;border-bottom:1px solid #e4e5df}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--forest);font:800 20px Manrope,sans-serif;letter-spacing:-1px;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:30px;height:30px;background:var(--forest);color:#f4d18b;border-radius:10px;font-size:18px}
.brand-dot{color:#e5a446}
.topbar-right{display:flex;align-items:center;gap:15px;margin-left:auto}
.brand-logo{display:block;width:clamp(116px,16vw,166px);height:auto;mix-blend-mode:multiply}
.sync-indicator{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}
.sync-indicator i{width:7px;height:7px;border-radius:50%;background:#88aa82}
.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--forest)}
.icon-button svg,.carrefour-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.intro{display:flex;align-items:flex-end;justify-content:space-between;padding:42px 0 27px}
.eyebrow{margin:0 0 9px;color:#799086;font-size:10px;font-weight:700;letter-spacing:1.4px}
h1,h2,p{margin-top:0}
h1{margin:0;color:var(--forest);font:800 38px/1.12 Manrope,sans-serif;letter-spacing:-1.6px}
.mobile-break{display:none}
.intro-copy{margin:12px 0 0;color:var(--muted);font-size:14px}
.people-card{display:flex;align-items:center;padding:9px 12px 9px 9px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 12px rgba(15,41,33,.03)}
.avatar{display:grid;place-items:center;width:27px;height:27px;border:2px solid #fff;border-radius:50%;font-size:11px;font-weight:700}
.avatar-green{background:#dcebe1;color:#315f49}.avatar-peach{margin-left:-8px;background:var(--peach);color:#a45e3d}
.people-label{margin-left:8px;color:#59675f;font-size:11px;font-weight:600}
.add-card{padding:22px 24px 23px;background:#fff;border:1px solid #e9ebe6;border-radius:19px;box-shadow:var(--shadow)}
.add-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.add-icon{display:grid;place-items:center;width:36px;height:36px;background:var(--mint);border-radius:12px;color:var(--green);font-size:23px;font-weight:400}
.add-card h2,.carrefour-card h2{margin:0;color:var(--forest);font:700 15px Manrope,sans-serif}
.add-card-heading p{margin:3px 0 0;color:var(--muted);font-size:11px}
#item-name{width:100%;height:49px;padding:0 15px;border:1px solid #e4e8e2;border-radius:12px;background:#fbfcfa;color:var(--ink);outline:none}
#item-name::placeholder{color:#a5ada7}
#item-name:focus,select:focus{border-color:#8eaf9c;box-shadow:0 0 0 3px rgba(76,135,101,.10)}
.form-row{display:flex;gap:9px;margin-top:10px}
.select-wrap{position:relative;flex:1;min-width:0}
.select-wrap:after{content:"⌄";position:absolute;right:12px;top:10px;color:#748178;font-size:14px;pointer-events:none}
select{width:100%;height:42px;padding:0 30px 0 12px;appearance:none;border:1px solid #e5e8e3;border-radius:11px;background:#fff;color:#536057;font-size:12px;outline:none}
.person-select{max-width:155px}
.add-button{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 14px;border:0;border-radius:11px;background:var(--forest);color:white;font-size:12px;font-weight:700}
.add-button span:last-child{font-size:16px;color:#d8c079}
.list-section{padding:38px 0 25px}
.list-heading{display:flex;justify-content:space-between;align-items:flex-end}
.list-heading .eyebrow{margin-bottom:6px}
.list-heading h2{display:flex;align-items:center;gap:9px;margin:0;color:var(--forest);font:800 23px Manrope,sans-serif;letter-spacing:-.6px}
.count-badge{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;background:#e6eee7;border-radius:8px;color:#476d55;font:700 11px "DM Sans",sans-serif}
.text-button{padding:5px 0;border:0;background:none;color:#738077;font-size:11px}
.text-button:hover{color:var(--forest);text-decoration:underline}
.filters{display:flex;gap:5px;margin:18px 0 9px;padding:4px;width:max-content;background:#eaece7;border-radius:11px}
.filter{padding:8px 12px;border:0;border-radius:8px;background:none;color:#748078;font-size:11px}
.filter.active{background:#fff;color:var(--forest);box-shadow:0 2px 5px rgba(24,49,38,.08);font-weight:700}
.filter span{margin-left:3px;color:#9aa39b}
.category-group{margin-top:17px}
.category-title{display:flex;justify-content:space-between;margin:0 3px 8px;color:#829087;font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
.item-row{display:flex;align-items:center;gap:12px;padding:13px 14px;background:#fff;border:1px solid #eceeea;border-bottom:0}
.item-row:first-of-type{border-radius:13px 13px 0 0}
.item-row:last-child{border-bottom:1px solid #eceeea;border-radius:0 0 13px 13px}
.item-row:only-child{border-radius:13px}
.check-button{flex:none;width:20px;height:20px;padding:0;border:1.5px solid #cdd8ce;border-radius:7px;background:#fff;color:#fff}
.item-row.done .check-button{border-color:var(--green);background:var(--green)}
.item-row.done .check-button:after{content:"✓";display:block;font-size:13px;line-height:17px}
.item-main{flex:1;min-width:0}
.item-name{display:block;overflow:hidden;color:#24352c;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.item-row.done .item-name{color:#a0aaa2;text-decoration:line-through}
.item-meta{display:flex;align-items:center;gap:8px;margin-top:4px;color:#9aa49d;font-size:10px}
.meta-dot{width:3px;height:3px;border-radius:50%;background:#bdc6be}
.item-quantity{display:flex;align-items:center;gap:7px;color:#68756c;font-size:11px}
.quantity-step{display:grid;place-items:center;width:23px;height:23px;padding:0;border:1px solid #e8ebe7;border-radius:7px;background:#fff;color:#55715f;font-size:15px;line-height:1}
.quantity-value{min-width:12px;text-align:center;font-weight:600}
.delete-item{width:24px;height:24px;padding:0;border:0;background:transparent;color:#b1bab3;font-size:17px}
.delete-item:hover{color:#bd6654}
.empty-state{padding:35px 16px;text-align:center;background:#fff;border:1px dashed #dce3dc;border-radius:14px;color:#7b887e}
.empty-basket{font-size:28px}
.empty-state h3{margin:10px 0 5px;color:var(--forest);font:700 14px Manrope,sans-serif}
.empty-state p{margin:0;font-size:12px}
.carrefour-card{display:flex;align-items:center;gap:13px;padding:17px 18px;background:#edf4ed;border:1px solid #e1ebe1;border-radius:16px}
.carrefour-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#fff;color:var(--green)}
.carrefour-copy{flex:1}
.carrefour-copy p{margin:4px 0 0;color:#75847a;font-size:11px;line-height:1.4}
.carrefour-button{display:flex;align-items:center;gap:16px;padding:11px 13px;border:0;border-radius:10px;background:var(--green);color:#fff;font-size:11px;font-weight:700}
.carrefour-button span:last-child{color:#d9cd89;font-size:15px}
footer{display:flex;justify-content:space-between;padding:25px 2px 0;color:#a0aaa2;font-size:10px}
.reset{color:#9b857a}
.toast{position:fixed;left:50%;bottom:24px;z-index:5;transform:translate(-50%,12px);padding:11px 17px;border-radius:12px;background:#1d3d30;color:white;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 8px 22px #183a2d33}
.toast.show{transform:translate(-50%,0);opacity:1}
.share-dialog{position:fixed;top:50%;left:50%;width:min(420px,calc(100vw - 32px));padding:30px;border:1px solid #e9ece7;border-radius:20px;transform:translate(-50%,-50%);box-shadow:0 24px 80px #183a2d26}
.share-dialog::backdrop{background:#15251d77;backdrop-filter:blur(2px)}
.dialog-close{position:absolute;top:12px;right:14px;border:0;background:none;color:#728077;font-size:24px}
.share-symbol{display:grid;place-items:center;width:40px;height:40px;margin-bottom:20px;border-radius:13px;background:var(--mint);color:var(--green);font-size:20px}
.share-dialog h2{margin:0;color:var(--forest);font:800 22px Manrope,sans-serif;letter-spacing:-.6px}
.dialog-copy{margin:12px 0 20px;color:#748077;font-size:13px;line-height:1.6}
.share-copy-button{width:100%;padding:13px;border:0;border-radius:11px;background:var(--forest);color:#fff;font-size:13px;font-weight:700}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:560px){.app-shell{padding:18px 17px 30px}.topbar{padding-bottom:20px}.sync-indicator{font-size:0}.sync-indicator i{width:8px;height:8px}.intro{padding:32px 0 22px;align-items:center}h1{font-size:31px}.mobile-break{display:block}.intro-copy{max-width:225px;font-size:12px;line-height:1.5}.people-card{padding:7px}.people-label{font-size:0;margin:0}.add-card{padding:18px 16px}.form-row{gap:7px;flex-wrap:wrap}.select-wrap{flex:1 1 40%}.person-select{max-width:none}.add-button{flex:1 1 100%;height:42px;justify-content:center;gap:10px}.list-section{padding-top:31px}.carrefour-card{flex-wrap:wrap;padding:14px}.carrefour-copy{max-width:calc(100% - 60px)}.carrefour-copy p{font-size:10px}.carrefour-button{width:100%;justify-content:center}.item-row{gap:9px;padding:12px 10px}.item-meta{gap:6px;font-size:9px}.item-quantity{gap:5px}.quantity-step{width:22px;height:22px}.delete-item{width:20px}footer{font-size:9px}}
