/* Catalogue editing and product galleries. */
.management .catalog-tools{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:18px;margin-bottom:14px}.management .catalog-count{font-size:14px;margin-bottom:22px;color:#625b63}.management .catalog-card{min-width:0}.management .catalog-card>img{height:235px;object-fit:cover;width:100%}.management .catalog-row{gap:14px;flex-wrap:wrap}.management .catalog-info h2{font-size:25px;overflow-wrap:anywhere}.management .catalog-info p{min-height:48px;overflow-wrap:anywhere}.catalog-category{display:block;font-size:12px;color:#7e683e;margin-bottom:12px}.catalog-card-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0}.management .catalog-card-actions button,.catalog-card-actions a,.catalog-card-actions>span{font-size:13px;color:#613a43}.catalog-card-actions a{text-decoration:underline;text-underline-offset:4px}
#catalog-editor{width:min(1060px,calc(100% - 32px));max-width:none;max-height:92dvh;border:1px solid #e8e2e4;background:#fff;padding:32px;color:#36384c;overflow:auto}#catalog-editor::backdrop{background:#2c202880}.catalog-editor-head{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;border-bottom:1px solid #ece6e8;padding-bottom:22px;margin-bottom:26px}.catalog-editor-head h2{font-size:29px;line-height:1.4}.catalog-editor-head .close{position:static;flex-shrink:0;min-width:44px;min-height:44px}.catalog-editor-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:32px;align-items:start}.catalog-editor-fields{min-width:0}#catalog-editor .field{margin-bottom:20px}#catalog-editor textarea{line-height:1.7;min-height:94px}.editor-help{font-size:13px;line-height:1.7;margin-bottom:20px;color:#625b63}.editor-occasions{padding:18px;border:1px solid #e8e2e4;margin:26px 0}.editor-occasions legend{font-size:15px;color:#613a43}.editor-occasions>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-occasions label{font-size:13px}.editor-photo-section{margin:28px 0}.editor-photo-section h3{font-size:23px;margin-bottom:10px}.editor-photo-section input[type=file]{padding:12px;width:100%;max-width:100%;font-size:14px}.editor-photo-section input::file-selector-button{background:#faf7f6;border:1px solid #d5ba87;padding:9px;color:#613a43;cursor:pointer;margin-right:8px}#editor-photos{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.editor-photo{border:1px solid #e8e2e4;padding:8px}.editor-photo img{aspect-ratio:1;object-fit:cover;width:100%}.editor-photo>span{font-size:13px;display:block;margin:8px 0;color:#613a43}.editor-photo>div{display:flex;gap:10px;flex-wrap:wrap}.editor-photo button{font-size:12px;text-decoration:underline;padding:4px;color:#613a43}.editor-preview{position:sticky;top:0;background:#faf7f6;padding:22px;min-width:0}.editor-preview>img{width:100%;aspect-ratio:4/5;object-fit:cover}.editor-preview>p{font-size:14px;line-height:1.7;margin:15px 0;overflow-wrap:anywhere}.editor-preview>h3{font-size:27px;margin:12px 0;overflow-wrap:anywhere}.editor-preview>strong{color:#613a43;font-weight:400;font-size:20px}.editor-preview>.badge{white-space:normal;line-height:1.6}.catalog-editor-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:22px;border-top:1px solid #ece6e8;margin-top:24px}.catalog-editor-actions small{font-size:12px;color:#625b63;flex:1;min-width:200px}.catalog-editor-actions button:disabled{opacity:.5;cursor:wait}#photo-progress{font-size:13px;color:#613a43}#catalog-editor-error:empty{display:none}
.product-gallery-thumbs{display:flex;gap:10px;padding:14px;flex-wrap:wrap;background:#faf7f6}.product-gallery-thumbs button{width:64px;height:64px;padding:3px;border:1px solid #e8e2e4}.product-gallery-thumbs button[aria-pressed=true]{border-color:#613a43}.product-gallery-thumbs img{width:100%;height:100%;object-fit:cover!important}.product-gallery-caption{padding:0 14px 14px;background:#faf7f6;color:#625b63;font-size:12px;text-align:center}.product-components{font-size:14px;margin:18px 0;line-height:1.7;white-space:pre-line}.product-components strong{color:#613a43}.season-price{font:400 21px Noto,Arial,sans-serif;color:#613a43;margin:18px 0 4px!important}.season-detail-copy .season-price{font-size:28px}.product-card p,.detail-copy h2,.detail-copy p{overflow-wrap:anywhere}.product-card .product-meta{gap:10px;align-items:flex-start}.product-card .simple-price{white-space:nowrap}
@media(max-width:800px){.management .catalog-tools{grid-template-columns:1fr}.management .catalog-tools .field{margin-bottom:0}#catalog-editor{padding:20px;width:calc(100% - 20px);max-height:94dvh}.catalog-editor-layout{grid-template-columns:minmax(0,1fr)}.editor-preview{position:static}.catalog-editor-head h2{font-size:25px}.catalog-editor-fields .form-grid{grid-template-columns:minmax(0,1fr)}.editor-occasions>div{grid-template-columns:1fr}.catalog-editor-actions{align-items:stretch}.catalog-editor-actions .btn{flex:1;justify-content:center}.catalog-editor-actions small{flex-basis:100%}.editor-photo-section input[type=file]{font-size:12px}.management .catalog-card>img{height:280px}.product-card .product-meta{flex-wrap:wrap}}

/* One stable frame for every product and angle; keep the complete arrangement. */
.simple-store .product-card .product-picture,
.simple-store .detail-photo { background:#f5f2ee; }
.simple-store .product-card .product-open img { object-fit:contain; }
.simple-store .product-card .product-open:hover img { transform:none; }
.simple-store .detail-gallery { min-width:0; }
.simple-store .product-gallery-stage { position:relative;width:100%;aspect-ratio:1;overflow:hidden; }
.simple-store .product-gallery-stage > #detail-main-photo { position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center; }
.simple-store .product-gallery-thumbs img { object-fit:contain!important; }

.catalog-heading-actions{display:flex;gap:12px;flex-wrap:wrap}.catalog-heading-actions .btn{white-space:nowrap}.editor-new-group{color:#613a43;text-decoration:underline;text-underline-offset:4px;font-size:14px;min-height:40px;padding:0 0 8px;margin-top:-8px;margin-bottom:8px}
#catalog-groups{width:min(650px,calc(100% - 32px));max-height:90dvh;border:1px solid #e8e2e4;background:#fff;padding:30px;color:#36384c;overflow:auto}#catalog-groups::backdrop{background:#2c202880}#catalog-groups .field{margin-bottom:16px}#catalog-groups .groups-intro{font-size:15px;line-height:1.8;margin-bottom:24px}#catalog-groups h2{font-size:29px}.groups-list-title{font-size:22px;margin:28px 0 12px}.product-group-list{list-style:none;padding:0;margin:0 0 24px}.product-group-list li{padding:14px 0;border-bottom:1px solid #ece6e8;display:flex;gap:15px;justify-content:space-between;align-items:baseline}.product-group-list span{font-size:16px;color:#613a43;overflow-wrap:anywhere}.product-group-list small{font-size:12px;color:#625b63;white-space:nowrap}#group-error:empty,#group-success:empty{display:none}#group-error,#group-success{font-size:14px;margin-top:14px;line-height:1.7}#group-success{color:#40614b}.season-filters{flex-wrap:wrap}
@media(max-width:700px){.catalog-heading-actions{flex-direction:column;align-items:stretch;width:100%}.catalog-heading-actions .btn{justify-content:center}#catalog-groups{padding:20px;width:calc(100% - 20px);max-height:94dvh}#catalog-groups h2{font-size:25px}.product-group-list li{flex-wrap:wrap;gap:5px}.product-group-list small{flex-basis:100%}}

#box-fields[hidden] { display: none; }
#box-fields .field { margin-bottom: 10px; }
#box-fields input[type="checkbox"] { width: auto; }
