.shop-photo{position:relative;aspect-ratio:357/205;border-radius:16px;overflow:hidden;background-color:#f7e6cc;background-image:url('flower.svg'),linear-gradient(135deg,#fdf5e8 0%,#f7e6cc 55%,#efd5ae 100%);background-repeat:no-repeat,no-repeat;background-position:center,center;background-size:54px 54px,cover}
.shop-products article:nth-child(2n) .shop-photo{background-image:url('flower.svg'),linear-gradient(135deg,#fbf1f0 0%,#f3dcd8 58%,#e8c4bc 100%)}
.shop-products article:nth-child(3n) .shop-photo{background-image:url('flower.svg'),linear-gradient(135deg,#f4f8ef 0%,#dfead8 58%,#c7d9bc 100%)}
.shop-toolbar,.shop-admin{padding:16px;margin:12px;background:#fff7e9;border:1px solid #ead8ba;border-radius:20px}.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;margin:8px 12px}.shop-toolbar small{display:block;color:#765a32;margin:0}.shop-toolbar div{display:flex;gap:8px;flex-wrap:wrap}.shop-toolbar button{padding:9px 14px}.shop-toolbar button,.shop-dialog button,.shop-recommendations button,.shop-admin button{background:linear-gradient(135deg,#e9b244,#b57a0b);color:white;border:0;border-radius:24px;padding:12px 18px;cursor:pointer;font:inherit}.shop-dialog{width:min(94vw,650px);max-height:85dvh;overflow:auto;border:1px solid #dfc9a9;border-radius:24px;padding:24px;background:#fffaf4;color:#472c18}.shop-dialog::backdrop{background:#28170877}.shop-close{float:right}.shop-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-products article{min-width:0;padding:10px;border:1px solid #ead8ba;border-radius:20px;background:#fffaf5}.shop-products h3{font-size:16px}.shop-products p{font-size:14px}.shop-recommendations{padding:12px}.shop-line{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #ead8ba}.shop-line input{width:65px}.shop-dialog form{display:block;padding:0;border:0;border-radius:0;background:transparent}.shop-dialog form button[type="submit"]{margin-top:14px}.shop-dialog label{display:block;margin:12px 0}.shop-dialog input,.shop-dialog textarea,.shop-admin input,.shop-admin select{display:block;box-sizing:border-box;max-width:100%;padding:12px;border:1px solid #d9c7ae;border-radius:12px;font:inherit}.shop-dialog form input,.shop-dialog textarea{width:100%}.shop-error{color:#ac2929}.shop-order{padding:14px;margin:10px 0;border:1px solid #ead8ba;border-radius:16px}.shop-dialog button:disabled{opacity:.5}.shop-admin{position:relative;z-index:1}

/* uploaded product photos + live cart */
.shop-photo.has-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.shop-line{align-items:center}
.shop-line>span{flex:1}
.shop-line .shop-photo{flex:0 0 56px;width:56px;height:56px;aspect-ratio:auto;border-radius:12px;background-size:28px 28px,cover}

/* compact shop chips (replaces the old boxed toolbar) */
.shop-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:6px;padding:6px 10px 2px;margin:0;background:transparent;border:0;border-radius:0}
.shop-toolbar .shop-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.shop-toolbar button{padding:6px 11px;font-size:12.5px;line-height:1.25;font-weight:600;border-radius:999px;border:1px solid #e3cfa8;background:#fffaf0;color:#8a5a12;box-shadow:none;min-height:0}
.shop-toolbar button:active{transform:scale(.97)}
#shop-count{display:inline-block;min-width:17px;margin-left:5px;padding:1px 5px;border-radius:999px;background:#b57a0b;color:#fff;font-size:11px;text-align:center}

/* sign-in calls to action */
.shop-cta,.chat-signin{display:inline-block;padding:11px 18px;border-radius:999px;background:linear-gradient(135deg,#e9b244,#b57a0b);color:#fff;text-decoration:none;font-weight:600}
.chat-signin{margin-top:6px}

/* remove a cart line */
.shop-line{position:relative}
.shop-remove{flex:0 0 auto;width:30px;height:30px;border-radius:50%;border:1px solid #e6d3b6;background:#fff;color:#a24a2a;font-size:13px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.shop-remove:hover{background:#fdece6}

/* cart line: fixed thumbnail + wrapping text + compact qty + small remove */
.shop-dialog .shop-line{display:grid;grid-template-columns:52px minmax(0,1fr) 32px;gap:10px;align-items:center;padding:12px 0;justify-content:initial}
.shop-dialog .shop-line .shop-photo{width:52px;height:52px;flex:none;aspect-ratio:auto;border-radius:12px;background-size:24px 24px,cover}
.shop-dialog .shop-line .shop-photo img{position:static;width:100%;height:100%;object-fit:cover;border-radius:12px}
.shop-line-info{min-width:0}
.shop-line-info strong{display:block;font-size:14px;line-height:1.35;color:#4d3511;overflow-wrap:anywhere}
.shop-line-info small{display:block;font-size:12px;color:#8a6b3c;margin-top:2px}
.shop-dialog .shop-line-qty{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:12px;color:#6b4c1f}
.shop-dialog .shop-line-qty input{width:64px;padding:6px 8px;border:1px solid #d9c7ae;border-radius:10px;font:inherit;font-size:13px}
.shop-dialog .shop-remove{width:32px;height:32px;padding:0;min-height:0;border-radius:50%;background:#fff;color:#a24a2a;border:1px solid #e6d3b6;font-size:14px;line-height:1;box-shadow:none;display:grid;place-items:center}
