.am-catalog-product div.product .summary{min-width:0;max-width:100%}
.am-catalog,.am-catalog *{box-sizing:border-box;min-width:0}
.am-catalog{margin:22px 0;padding:22px;border:1px solid #dfd8cd;border-radius:14px;background:#faf8f4;color:#25231f;max-width:100%}
.am-catalog h2{font-size:1.5rem;margin:0 0 12px}.am-catalog h3{font-size:1rem}.am-catalog label{display:block;margin:14px 0;font-size:.95rem;font-weight:600}
.am-catalog input[type=text],.am-catalog select{display:block;width:100%;min-height:44px;border:1px solid #bcb6ac;border-radius:5px;background:white;padding:10px;margin-top:6px}
.am-catalog input[type=file]{display:block;width:100%;font-size:.85rem;margin-top:8px}.am-catalog input[type=range]{display:block;width:100%}
.am-catalog-person{padding:4px 0 12px;border-bottom:1px solid #e0dad1}.am-catalog [hidden]{display:none!important}
.am-catalog-check{font-weight:400!important;line-height:1.6}.am-catalog-check input{margin-right:7px}
.am-catalog-photo{margin:20px 0;border:1px solid #d2c9bc;border-radius:8px;padding:14px}.am-catalog-photo legend{font-weight:600}
.am-catalog-photo canvas{display:block;width:100%;height:auto;background:#ece8e0;margin:10px 0}.am-catalog-photo button{min-height:44px}
.am-catalog-layout{padding:15px;background:white;border-radius:8px;margin:18px 0}.am-catalog-layout p,.am-catalog-image-status{font-size:.8rem;color:#665f55}
.am-catalog-name{display:inline-block;padding:8px 14px;margin:4px;border:1px solid #c9b388;border-radius:18px;font-family:Georgia,serif;font-size:1.12rem;max-width:100%;overflow-wrap:anywhere}
.am-catalog-total{font-weight:700;font-size:1.2rem}[data-errors]{color:#a22323}.am-catalog-photo [role=status]{font-size:.85rem}
@media(max-width:600px){.am-catalog{padding:15px}.am-catalog-photo{padding:10px}}

/* The shared product-detail shell expects the legacy customizer markup. Keep
   the catalog runtime full-width inside the same purchase grid. */
body.single-product.am-catalog-product form.variations_form.cart>.variations,
body.single-product.am-catalog-product form.variations_form.cart>.reset_variations_alert,
body.single-product.am-catalog-product form.variations_form.cart>.single_variation_wrap{grid-column:1/-1;width:100%;min-width:0}
body.single-product.am-catalog-product .single_variation_wrap>.woocommerce-variation{width:100%}
body.single-product.am-catalog-product .single_variation_wrap>.woocommerce-variation-add-to-cart{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px 12px;width:100%;min-width:0}
body.single-product.am-catalog-product .single_variation_wrap>.woocommerce-variation-add-to-cart>.am-catalog{grid-column:1/-1;width:100%;margin-inline:0}
body.single-product.am-catalog-product .single_variation_wrap>.woocommerce-variation-add-to-cart>.quantity{grid-column:1}
body.single-product.am-catalog-product .single_variation_wrap>.woocommerce-variation-add-to-cart>.single_add_to_cart_button{grid-column:2}
body.single-product.am-catalog-product .am-product-gallery-note{align-self:start;align-content:start;height:auto;min-height:0}
.am-catalog-story{margin:38px 0}.am-catalog-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:24px}.am-catalog-detail-grid figure{margin:0;min-width:0}.am-catalog-detail-grid img{display:block;width:100%;height:auto;border-radius:10px}.am-catalog-detail-grid figcaption{padding:12px 0;font-size:.9rem;line-height:1.5;color:#655c55}
@media(max-width:600px){.am-catalog-detail-grid{grid-template-columns:minmax(0,1fr);gap:22px}}

/* 照片上传控件紧凑化：3 个裁剪滑块（Zoom/Horizontal/Vertical）水平排列，减少垂直占用 */
.am-catalog-photo{margin:14px 0;padding:12px}
.am-catalog-photo label{margin:10px 0}
.am-catalog-photo label:has(input[type=range]){display:inline-block;width:calc(33.33% - 8px);margin:6px 6px 0 0;vertical-align:top;font-size:.8rem}
.am-catalog-photo label:has(input[type=range]):nth-of-type(4){margin-right:0}
.am-catalog-photo label:has(input[type=range]) input[type=range]{margin-top:4px}
.am-catalog-photo canvas{margin:8px 0}
@media(max-width:600px){.am-catalog-photo label:has(input[type=range]){width:100%;margin-right:0}}

/* 未上传照片时隐藏裁剪预览画布、裁剪滑块与旋转按钮，消除上传前的空白；上传成功后（.has-photo）再显示 */
.am-catalog-photo canvas,
.am-catalog-photo label:has(input[type=range]),
.am-catalog-photo button[data-rotate]{display:none}
.am-catalog-photo.has-photo canvas{display:block}
.am-catalog-photo.has-photo label:has(input[type=range]){display:inline-block}
.am-catalog-photo.has-photo button[data-rotate]{display:inline-block}

/* 定制区标题「Make it personal」字号收敛：覆盖主题 h2 的 clamp 大字号（否则渲染成 61px，比产品名还大） */
body.amorieva-site .am-catalog h2{font-size:1.5rem;margin:0 0 12px}
