.category-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:26px}.category-image-card{overflow:hidden}.category-image-card>img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#e9eee1}.category-image-card>div{padding:20px}.category-image-card h2{font-size:28px;line-height:1.25}.category-image-card p{font-size:15px;color:#718164;margin:8px 0 18px}.category-image-card .button{font-size:15px;width:100%}.category-image-preview{width:100%;aspect-ratio:4/3;max-height:340px;object-fit:cover;border:1px solid #d5dec9;border-radius:5px;margin-bottom:18px;background:#e9eee1}.category-image-editor .upload-label{display:inline-flex;padding:10px 16px;cursor:pointer}.category-image-editor .micro{margin:12px 0}.category-image-card>img[src$="placeholder.svg"]{object-fit:contain;padding:28px}
.category-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 0 40px}.category-order-card{padding:24px;min-width:0;align-self:start}.category-order-card h2{font-size:28px;line-height:1.25;margin:12px 0}.category-order-card>p{font-size:16px;line-height:1.65}.category-order-card>.micro{font-size:14px;margin:12px 0}.category-order-status{color:#46603b;min-height:24px}.category-order-list{max-height:620px;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid #dfe3d5;scrollbar-gutter:stable}.category-order-row{display:grid;grid-template-columns:46px minmax(0,1fr) 94px;align-items:center;gap:12px;border-bottom:1px solid #dfe3d5;padding:14px 0}.category-order-row>img{width:46px;height:56px;object-fit:cover;border-radius:3px;background:#e9eee1}.category-order-name strong{display:block;font-size:17px;font-weight:400;line-height:1.35;overflow-wrap:anywhere}.category-order-name small{display:block;font-size:12px;line-height:1.5;color:#6d785e;margin-top:5px}.category-order-tools label{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px}.category-order-tools input{width:42px;padding:5px 3px;border:1px solid #ced6c1;background:#fff;font:inherit;font-size:14px;border-radius:3px}.category-order-tools>div{display:flex;gap:6px;margin-top:6px}.category-order-tools .small-button{width:42px;min-height:34px;justify-content:center;padding:4px;font-size:18px}.category-images-heading{font-size:30px;margin:20px 0}.category-order-tools input:focus-visible{outline:2px solid #81946e;outline-offset:2px}
@media(max-width:1100px){.category-order-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.category-order-card{padding:20px 16px}.category-order-card h2{font-size:26px}.category-order-row{grid-template-columns:38px minmax(0,1fr) 88px;gap:9px}.category-order-row>img{width:38px;height:50px}.category-order-name strong{font-size:16px}.category-order-tools .small-button{width:40px;min-height:38px}.category-order-tools input{font-size:16px}.category-order-list{max-height:560px}.category-order-grid{gap:20px}}
/* La fermeture suit le défilement de la fiche, sans déplacer sa description. */
.product-sheet{position:relative}.product-sheet-toolbar{position:sticky;top:0;height:0;z-index:10;display:flex;justify-content:flex-end;pointer-events:none}.product-sheet-toolbar>.close-modal{pointer-events:auto;flex-shrink:0;margin:12px 12px 0 0;width:44px;height:44px;background:#fffdf7;border:1px solid #ced8c2;border-radius:50%;box-shadow:0 3px 12px #20382020}.product-sheet-toolbar>.close-modal:hover{background:#e7eddd}.product-sheet-toolbar>.close-modal:focus-visible{outline:2px solid #6e865a;outline-offset:3px}.product-sheet .product-detail{padding-top:60px}
/* Les horaires sont centrés par rapport au nom du marché ou de la foire. */
.hero-pickup-card .hero-pickup-row{align-items:center}.hero-pickup-row>strong,.hero-pickup-row>div{align-self:center}.market-hours>span{align-items:center}
@media(max-width:1100px){.category-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:650px){.category-image-grid{grid-template-columns:1fr}.category-image-card>img{aspect-ratio:16/9}.category-image-card>div{padding:18px}.product-sheet-toolbar>.close-modal{margin-top:10px;margin-right:10px}.product-sheet .product-detail{padding-top:62px}}

/* La description défile dans sa zone ; les actions restent toujours accessibles. */
dialog.product-dialog{overflow:hidden}.product-dialog .product-sheet{display:flex;flex-direction:column;max-height:92dvh}.product-dialog .product-sheet-toolbar{position:relative;flex-shrink:0}.product-dialog .product-detail{min-height:0;overflow-y:auto;overscroll-behavior:contain}.product-sheet-purchase{flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:16px 35px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #d5decc;background:#f7f6f0;box-shadow:0 -6px 18px #243d2610;z-index:5}.product-purchase-summary{min-width:0}.product-purchase-summary>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px;line-height:1.3;margin-bottom:4px}.product-purchase-summary .price{font-size:19px}.product-sheet-purchase .detail-actions{margin:0;gap:14px;align-items:flex-end}.product-sheet-purchase .detail-actions>label{width:100px;flex-shrink:0;font-size:14px;white-space:nowrap}.product-sheet-purchase .detail-actions input{width:100%;height:48px;padding:8px 10px;font-size:18px}.product-sheet-purchase .detail-actions .button{min-height:48px;white-space:nowrap}.product-dialog #product-request-form{scroll-margin:18px}
@media(max-width:650px){.product-dialog .product-sheet{max-height:94dvh}.product-sheet-purchase{grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 20px calc(14px + env(safe-area-inset-bottom))}.product-purchase-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-purchase-summary>strong{font-size:17px;max-width:56%;margin:0}.product-purchase-summary>div{flex-shrink:0}.product-purchase-summary .price{font-size:17px}.product-sheet-purchase .detail-actions{gap:12px;width:100%}.product-sheet-purchase .detail-actions>label{width:88px;font-size:13px}.product-sheet-purchase .detail-actions .button{flex:1;font-size:16px;padding:12px 14px;white-space:normal;line-height:1.25}}
/* Catégorie fournisseur : conserve son contenu même sans fiche produit. */
.supplier-category{position:relative;isolation:isolate;overflow:hidden;min-height:520px;margin-top:24px;background:#293d2e;border-radius:4px;color:white;display:flex;align-items:center}.supplier-category-image{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}.supplier-category:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(18,36,25,.93),rgba(18,36,25,.77) 60%,rgba(18,36,25,.3))}.supplier-category-content{max-width:650px;padding:42px 36px}.supplier-badge{display:inline-block;padding:5px 12px;border:1px solid #d6dfc9;border-radius:20px;font-size:14px;color:#edf1dc}.supplier-category h2{font-size:46px;line-height:1.15;margin:22px 0}.supplier-category p{font-size:17px;line-height:1.65;margin:14px 0}.supplier-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 14px}.supplier-actions .button{font-size:16px;padding:14px 20px;gap:12px}.supplier-actions .supplier-quote{background:#e2c793;color:#263c2c}.supplier-category small{display:block;max-width:440px;font-size:13px;line-height:1.5;color:#e1e8d7}.supplier-help{display:flex;align-items:flex-start;gap:16px;padding:22px 8px 8px;color:#535f4f}.supplier-help>.icon,.supplier-help>span{flex-shrink:0}.supplier-help p{margin:0;font-size:15px;line-height:1.7}.supplier-help strong{font-size:18px;color:#344934}#supplier-category[hidden],#catalogue-filters[hidden],.sort-field[hidden]{display:none!important}
@media(max-width:650px){.supplier-category{margin-top:18px;min-height:0}.supplier-category-content{padding:30px 23px}.supplier-category h2{font-size:36px}.supplier-category p{font-size:16px}.supplier-category:before{background:rgba(18,36,25,.83)}.supplier-actions{flex-direction:column;align-items:stretch}.supplier-actions .button{justify-content:center;font-size:16px}.supplier-help{padding:20px 4px}.supplier-help p{font-size:14px}.supplier-badge{font-size:13px}}
