.shop{max-width:1120px;margin:70px auto;padding:clamp(24px,5vw,64px);background:#f2e9df;color:#302722;border-radius:2px}
.shop h1{font-size:clamp(28px,4vw,44px);margin:0 0 14px;font-weight:500}
.shop-intro{max-width:640px;margin:0 0 28px}
.shop-notice{background:#fff;border-left:4px solid #d2044c;padding:12px 16px;margin:0 0 24px}
/* Cartes de la boutique : 3 par ligne sur ordinateur, 2 sur tablette, 1 sur mobile ; une ligne incomplete reste centree. */
.shop-grid{--shop-gap:26px;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--shop-gap);align-items:stretch}
.shop-grid>.shop-card{flex:0 0 calc((100% - 2*var(--shop-gap))/3);min-width:0}
@media (max-width:1023px){.shop-grid>.shop-card{flex-basis:calc((100% - var(--shop-gap))/2)}}
@media (max-width:639px){.shop-grid>.shop-card{flex-basis:100%}}
.shop-grid-one>.shop-card{flex:0 1 420px}
.shop-buyer{border:0;padding:0;margin:14px 0 0}.shop-buyer legend{font-weight:600;margin-bottom:6px}
.shop-card{background:#fffdfa;display:flex;flex-direction:column;border:1px solid #e0d3c5;overflow:hidden}
.shop-card h3{margin:0;font-size:22px;font-weight:500}
.shop .shop-card-img,.shop-card picture{display:block;width:100%}
.shop .shop-card-img,.shop-card picture img{display:block;width:100%;height:220px;max-height:220px;aspect-ratio:3/2;object-fit:cover}
.shop-desc{margin:0;color:#5d534c}
.shop-price{font-size:24px;margin:0}
.shop label,.shop legend{font-size:14px}
.shop input:not([type=radio]):not([type=checkbox]),.shop textarea,.shop select{width:100%;padding:11px 12px;border:1px solid #bfae9d;background:#fff;color:#302722;font:inherit;border-radius:2px}
.shop-amounts{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.shop-chip input{position:absolute;opacity:0}
.shop-chip span{display:inline-block;padding:9px 16px;border:1px solid #bfae9d;cursor:pointer;background:#fff}
.shop-chip input:checked+span{background:#302722;color:#fff;border-color:#302722}
.shop-chip input:focus-visible+span,.shop-btn:focus-visible,.shop-link:focus-visible{outline:3px solid #d2044c;outline-offset:2px}
.shop-custom{flex-basis:100%}
.shop-check{display:flex;gap:8px;align-items:flex-start;margin:10px 0}
.shop-btn{margin-top:auto;padding:13px 22px;background:#d2044c;color:#fff;border:0;font:inherit;font-weight:600;cursor:pointer;border-radius:2px}
.shop-btn-ghost{background:transparent;color:#302722;border:1px solid #302722;margin-top:12px}
.shop-link{background:none;border:0;padding:0;color:#302722;text-decoration:underline;font:inherit;cursor:pointer}
.shop-cart ul{list-style:none;margin:0;padding:0}
.shop-cart li{display:grid;grid-template-columns:1fr auto auto auto;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid #d9cabb}
.shop-qty input{width:70px!important}
.shop-total{text-align:right;font-size:20px}
.shop-pay{display:flex;flex-direction:column;gap:8px;max-width:520px;margin-top:32px}
.shop-terms{background:#fff;padding:10px 14px}
@media(max-width:640px){.shop-cart li{grid-template-columns:1fr auto}}
.shop-custom{display:none}
.shop-amounts:has(input[value=custom]:checked) .shop-custom{display:block}
.shop-req{color:#d2044c;font-weight:700}
.shop-required-note{margin:0;font-size:13px;color:#5d534c}
.shop textarea{min-height:7.5rem;height:auto;field-sizing:content;resize:vertical;line-height:1.5}
.shop input:user-invalid,.shop textarea:user-invalid{border-color:#d2044c;outline:1px solid #d2044c}
.shop-company{display:none;flex-direction:column;gap:8px;padding:14px;background:#fffdfa;border:1px solid #e0d3c5}
.shop-pay:has(input[name=company]:checked) .shop-company{display:flex}
.shop-order{background:#fffdfa;border:1px solid #e0d3c5;padding:18px 22px;margin:0 0 16px}
.shop-order h2{font-size:20px;margin:0 0 8px}.shop-order ul{margin:0 0 8px;padding-left:18px}
.shop-templates{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.shop-templates legend{font-size:14px;margin-bottom:6px}
.shop-modal{border:0;padding:0;max-width:min(94vw,560px);width:100%;background:#fffdfa;color:#302722}
.shop-modal::backdrop{background:rgba(20,16,14,.72)}
.shop-modal-in{padding:22px;position:relative;text-align:center}
.shop-modal-in h2{margin:0 0 6px;font-size:22px;font-weight:500}
.shop-modal-note{font-size:13px;color:#5d534c;margin:0 0 12px}
.shop-modal-img{display:block;max-width:100%;max-height:72vh;width:auto;height:auto;margin:0 auto;-webkit-user-drag:none;user-select:none}
.shop-modal-close{position:absolute;top:8px;right:12px;background:none;border:0;font-size:28px;line-height:1;cursor:pointer;color:#302722}
.shop-usage{margin:6px 0;padding:10px 12px;background:#fffdfa;border-left:3px solid #d2044c;font-size:14px;color:#302722}

.shop-card-media{aspect-ratio:3/2;background:#2a2321;overflow:hidden}
.shop-card-media .shop-card-img{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;display:block}
.shop-card-ph{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:#b9a07b;background:linear-gradient(160deg,#3a2f28,#1f1a17)}
.shop-card-body{padding:18px 22px 6px;display:flex;flex-direction:column;gap:6px}
.shop-card-body h3{margin:0;font-size:24px;font-weight:500;line-height:1.2}
.shop-card .shop-desc{margin:0;font-size:15px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.shop-card .shop-price{margin:4px 0 0;font-size:17px;font-weight:600;color:#8c6a4a}
.shop-opts{margin-top:auto;padding:14px 22px 22px}
.shop-opts>summary{list-style:none;cursor:pointer;display:block;text-align:center;margin:0}
.shop-opts>summary::-webkit-details-marker{display:none}
.shop-opts[open]>summary{background:transparent;color:#302722;border:1px solid #302722;margin-bottom:14px}
.shop-opts-in{display:flex;flex-direction:column;gap:10px}
.shop-opts-in label,.shop-opts-in legend{font-size:14px}
.shop-opts .shop-chip span{padding:7px 12px;font-size:14px}
.shop-actions{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.shop-actions .shop-btn{margin-top:0;width:100%;text-align:center}
.shop-btn:not(.shop-btn-ghost){border:1px solid #d2044c}

.shop-opts{margin-top:auto;padding:14px 22px 22px}
.shop-opts>.shop-btn{width:100%;text-align:center}
dialog.shop-sheet{border:0;padding:0;width:min(94vw,540px);max-height:92vh;background:#fffdfa;color:#302722;overflow:hidden}
dialog.shop-sheet::backdrop{background:rgba(20,16,14,.72)}
dialog.shop-sheet[open]{display:flex}
.shop-form{display:flex;flex-direction:column;min-height:0;width:100%}
.shop-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid #e0d3c5}
.shop-sheet-head h3{margin:0;font-size:22px;font-weight:500}
.shop-sheet-close{background:none;border:0;font-size:30px;line-height:1;cursor:pointer;color:#302722;padding:0 4px}
.shop-form .shop-opts-in{padding:18px 22px 22px;overflow:auto;min-height:0}
body:has(dialog.shop-sheet[open]){overflow:hidden}
@media(min-width:900px){
 dialog.shop-sheet{width:min(92vw,880px)}
 .shop-form .shop-opts-in{padding:24px 36px 28px}
 .shop-sheet-head{padding:18px 36px}
 .shop-buyer{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}
 .shop-buyer>legend,.shop-buyer>details,.shop-buyer>.shop-check,.shop-buyer>p{grid-column:1/-1}
 .shop-buyer>div{min-width:0}
}
@media(max-width:640px){
 dialog.shop-sheet{width:100%;max-width:100%;max-height:94vh;margin:auto 0 0;border-radius:16px 16px 0 0}
 .shop-form .shop-opts-in{padding:16px 18px 24px}
}
.shop-form .shop-actions{position:sticky;bottom:-22px;background:#fffdfa;padding:10px 0 4px;margin-top:8px}
.shop-line-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.shop-form-err{margin:0 0 6px}

.shop-modal-tabs{display:flex;justify-content:center;gap:8px;margin:0 0 10px}
.shop-modal-tabs button{background:#fff;border:1px solid #bfae9d;padding:7px 16px;cursor:pointer;font:inherit;color:#302722}
.shop-modal-tabs button[aria-pressed=true]{background:#302722;color:#fff;border-color:#302722}
.shop-note{text-align:center;font-size:14px;color:#5d534c;margin:14px auto 0;max-width:60ch}
.shop-block-link{text-align:center;margin:16px 0 0}
.shop-block-link .shop-btn{display:inline-block;text-decoration:none}

.shop-picker{display:flex;flex-direction:column;gap:8px}
.shop-combo{display:flex;flex-direction:column;gap:6px}
.shop-combo input[role=combobox]{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23302722' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:38px!important}
.shop-combo [role=listbox]{list-style:none;margin:0;padding:0;max-height:16rem;overflow:auto;border:1px solid #bfae9d;background:#fff}
.shop-combo .shop-pk-grp{list-style:none;margin:0;padding:0}
.shop-combo .shop-pk-grp[hidden]{display:none}
.shop-combo .shop-pk-grp ul{list-style:none;margin:0;padding:0}
.shop-pk-group{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px 9px 14px;background:#2a2321;color:#f3e4c9;border-left:4px solid #d2044c;font-size:13px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;cursor:default}
.shop-pk-count{flex:none;min-width:22px;padding:1px 8px;border-radius:999px;background:#f3e4c9;color:#2a2321;font-size:12px;font-weight:700;letter-spacing:0;text-align:center}
.shop-combo [role=option]{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px 12px 10px 18px;cursor:pointer;border-bottom:1px solid #eee4d9}
.shop-combo [role=option]:last-child{border-bottom:0}
.shop-combo [role=option]:hover,.shop-combo [role=option].is-cur{background:#f2e9df}
.shop-combo [role=option][hidden]{display:none}
.shop-pk-title{font-weight:600;line-height:1.3}
.shop-pk-price{color:#8c6a4a;font-weight:600;white-space:nowrap}
.shop-pk-desc{grid-column:1/-1;font-style:italic;font-size:13px;line-height:1.45;color:#5d534c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shop-pk-empty{margin:0;font-size:14px;color:#5d534c}
.shop-picked-wrap h4{margin:10px 0 6px;font-size:15px;font-weight:600}
.shop-picked{list-style:none;margin:0;padding:0;border-top:1px solid #e0d3c5}
.shop-picked-item{display:grid;grid-template-columns:1fr auto auto auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #e0d3c5}
.shop-pk-pv,.shop-pk-rm{white-space:nowrap}
@media (max-width:480px){.shop-picked-item{grid-template-columns:1fr auto auto}.shop-picked-item .shop-pk-title{grid-column:1/-1}}
.shop-picked-total{margin:8px 0 0;text-align:right;font-weight:600}
