.pe-heading{max-width:860px;margin:0 auto 28px}.pe-heading>a{font-size:14px;color:#715c70;display:inline-flex;min-height:44px;align-items:center}.pe-heading h1{font-size:32px;letter-spacing:-.03em;margin-top:12px}.pe-heading>p{font-size:14px;color:#715c70;line-height:1.8;margin-top:10px}
.pe-form{max-width:860px;margin:auto}.pe-section{padding:28px 0;border-top:1px solid #e0d5d7}.pe-section h2{font-size:20px;letter-spacing:-.02em;margin:0 0 18px}.pe-section h2>span{font-size:12px;font-weight:400;color:#715c70;margin-left:10px}.pe-section>p{font-size:14px;color:#715c70;line-height:1.8;margin-bottom:18px}.pe-form label{font-size:14px;color:#352238;line-height:1.6}.pe-form input,.pe-form select,.pe-form textarea{font-size:15px;padding:12px;min-height:46px;width:100%;border:1px solid #cdbfc9;border-radius:8px;background:#fff;color:#352238}.pe-form textarea{line-height:1.7;resize:vertical}.pe-form input:read-only{background:#f1eae7;color:#715c70}.pe-form .pe-help,.pe-help{display:block;font-size:12px;color:#715c70;line-height:1.7;margin-top:10px}.pe-form input::placeholder,.pe-form textarea::placeholder{color:#796876}
.pe-measures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.pe-measure{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:8px}.pe-variant{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;padding:14px 0;border-top:1px solid #e5dcd8}.pe-variant label{margin:0}.pe-variant .btn{font-size:12px;min-height:46px;margin:0 0 1px}.pe-variant input{margin:6px 0 0}.pe-form #pe-variants{margin-bottom:20px}.pe-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.pe-photo{min-width:0;position:relative}.pe-photo>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:#eee7e1;border:1px solid #e0d5d7}.pe-photo>span{position:absolute;left:8px;top:8px;background:#fff7ed;color:#352238;font-size:11px;padding:5px 7px;border-radius:4px}.pe-photo>div{display:flex;flex-direction:column;align-items:flex-start}.pe-photo button{background:none;color:#6a445e;font-size:12px;text-decoration:underline;text-underline-offset:3px;min-height:36px;padding:5px 0;text-align:left}.pe-upload{display:block;border:1px dashed #af95a8;border-radius:8px;padding:16px!important;cursor:pointer}.pe-upload input{margin-top:12px}.pe-save{border-top:1px solid #d5c4ce;padding:24px 0 12px;display:flex;justify-content:flex-end;align-items:center;gap:14px;flex-wrap:wrap}.pe-save .error{width:100%;font-size:14px}.pe-save .btn{min-height:48px;font-size:14px}.pe-section>.btn{font-size:14px;min-height:44px}.pe-form :focus-visible{outline:3px solid #a54317;outline-offset:3px}.pe-form button:disabled{opacity:.6;cursor:wait}
.pd-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px}.pd-layout h2{font-size:25px;margin:12px 0}.pd-layout>div>p{font-size:14px;line-height:1.8;color:#715c70}.pd-layout .pd-description{white-space:pre-wrap;margin:18px 0}.pd-image{aspect-ratio:1;background:#f4eee8;display:grid;place-items:center;border-radius:10px;overflow:hidden}.pd-image img{width:100%;height:100%;object-fit:contain}.pd-image svg{width:55%;height:55%}.pd-thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.pd-thumbs button{background:none;padding:0;width:60px;height:60px;border:1px solid #cdbfc9;border-radius:6px;overflow:hidden}.pd-thumbs img{width:100%;height:100%;object-fit:cover}.pd-measures{font-size:13px;margin:20px 0}.pd-measures>div{display:flex;justify-content:space-between;border-bottom:1px solid #e5dcd8;padding:8px 0}.pd-measures dd{margin:0}.pd-layout select{width:100%;font-size:15px;min-height:48px}.pd-layout .modal-actions{flex-wrap:wrap}.pd-layout .btn{min-height:44px;font-size:13px}.sf-product-title{font:inherit;color:inherit;background:none;text-align:left;padding:4px 0;line-height:1.5}.sf-product-title:hover{text-decoration:underline;text-underline-offset:4px}.sf-product-description{white-space:pre-wrap;font-size:13px;line-height:1.7;color:var(--sf-ink,#352238)}
dialog:has(.pd-layout){width:min(900px,calc(100vw - 32px));max-width:900px}
@media(max-width:720px){.pe-heading h1{font-size:28px}.pe-section{padding:24px 0}.pe-form .form-row{gap:12px}.pe-measures{gap:0 14px}.pe-measure{grid-template-columns:minmax(0,1fr) 65px;gap:5px}.pe-form .pe-measure select{padding-left:6px;padding-right:6px}.pe-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.pe-variant{grid-template-columns:1fr 1fr;gap:12px}.pe-variant>label:first-child{grid-column:1/-1}.pe-variant>.btn{grid-column:1/-1;justify-self:start;min-width:100px}.pe-save{justify-content:stretch}.pe-save .btn{flex:1}.pd-layout{grid-template-columns:minmax(0,1fr)}.pd-image{max-height:320px}.pd-layout h2{font-size:24px}.pe-form{padding-bottom:20px}}
@media(max-width:400px){.pe-measures{grid-template-columns:minmax(0,1fr)}.pe-measure{grid-template-columns:minmax(0,1fr) 80px}}
/* Keep the catalogue visible and the product actions within reach. */
dialog:has(#product-form){width:min(840px,calc(100vw - 32px));max-width:840px;height:min(850px,90dvh);max-height:90dvh;padding:0;overflow:hidden;background:#fffaf5;border-color:#dbcbd5;box-shadow:0 24px 80px #35223830}
dialog[open]:has(#product-form){display:flex;flex-direction:column}
dialog:has(#product-form)::backdrop{background:#35223866;backdrop-filter:none}
dialog:has(#product-form) .pe-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px 26px;margin:0;border-bottom:1px solid #e5dcd8;max-width:none;flex-shrink:0;background:#fffaf5}
.pe-heading h2{font-size:24px;letter-spacing:-.03em;margin:0;line-height:1.3}.pe-heading>div>p{font-size:13px;color:#715c70;line-height:1.7;margin:6px 0 0}
.pe-close{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid #dfd0da;border-radius:9px;background:#fff;color:#352238}.pe-close:hover{background:#f5e9e1}.pe-close:focus-visible{outline:3px solid #a54317;outline-offset:2px}
dialog .pe-form{display:flex;flex-direction:column;flex:1;min-height:0;max-width:none;width:100%;margin:0;padding:0;overflow:hidden}
.pe-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 26px;scroll-padding:20px}
.pe-body .pe-section{padding:22px 0}.pe-body .pe-section:first-child{border-top:0}.pe-section h3{font-size:17px;letter-spacing:-.02em;margin:0 0 16px}
.pe-form label{margin-top:13px}.pe-form .pe-help{margin:8px 0 0}.pe-form .pe-section>p{font-size:13px;margin-bottom:12px}.pe-form textarea{min-height:90px}
.pe-options>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:44px;font-size:16px;font-weight:700;color:#352238}.pe-options>summary::-webkit-details-marker{display:none}.pe-options>summary>span{font-size:12px;font-weight:400;color:#715c70;margin-left:auto}.pe-options>summary:after{content:'+';font-size:22px;font-weight:400;width:20px;text-align:center}.pe-options[open]>summary:after{content:'−'}.pe-options[open]>summary{margin-bottom:14px}
.pe-body .pe-options{padding:12px 0}.pe-form .pe-save{flex-shrink:0;margin:0;padding:14px 26px;border-top:1px solid #dfd0da;background:#fffaf5;box-shadow:0 -6px 18px #35223805;gap:12px}.pe-save .error:empty{display:none}.pe-save .error{margin:0;font-size:13px}.pe-save .btn{min-height:46px}.pe-form .pe-upload{padding:12px!important}.pe-form .pe-upload input{margin-top:8px}.pe-form .pe-photos:empty{display:none}
@media(max-width:720px){dialog:has(#product-form){width:calc(100vw - 16px);height:94dvh;max-height:94dvh;border-radius:14px}dialog:has(#product-form) .pe-heading{padding:16px;gap:10px}.pe-heading h2{font-size:21px}.pe-heading>div>p{font-size:12px}.pe-body{padding:0 16px}.pe-body .pe-section{padding:20px 0}.pe-form .pe-save{padding:12px 16px}.pe-form .pe-save .btn{flex:1;padding:12px 10px;font-size:13px}.pe-options>summary{font-size:15px}.pe-options>summary>span{font-size:11px}.pe-close{width:40px;height:40px}}
