.market-home main{padding-top:20px;padding-bottom:120px}
.market-home .app-nav{display:flex;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.market-home .app-tab{flex:0 0 auto;min-width:84px;min-height:44px;flex-direction:row;padding:9px 12px!important;font-size:12px!important;white-space:nowrap}
.market-home .app-nav::-webkit-scrollbar{display:none}
.market-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.market-title-row h2{font-size:24px;font-weight:700;color:#0f172a}
.market-title-row p{font-size:13px;color:#64748b}
.market-title-row button,.market-search-row>button{min-height:44px;padding:10px 12px;border-radius:12px;background:white;border:1px solid #e2e8f0;color:#475569;font-size:13px}
.market-search-row{display:flex;gap:10px;align-items:center}
.market-search-row label{flex:1;min-width:0;position:relative}
.market-search-row label>span{position:absolute;left:15px;top:10px;color:#94a3b8;font-size:22px}
.market-search-row input{min-width:0;width:100%;height:48px;border:1px solid #e2e8f0;border-radius:30px;padding:10px 16px 10px 44px;background:#fff;font-size:16px}
.market-section-title{display:flex;gap:10px;align-items:baseline;justify-content:space-between}
.market-section-title h3{font-size:18px;font-weight:600;color:#1e293b}
.market-section-title span{font-size:13px;color:#94a3b8}
.market-featured-strip{display:flex;gap:12px;overflow-x:auto;padding:8px 1px 12px;scroll-snap-type:x proximity;scrollbar-width:thin}
.market-featured-strip>.market-product{flex:0 0 172px;scroll-snap-align:start}
.market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.market-product{min-width:0;border:1px solid #e2e8f0;border-radius:18px;background:white;overflow:hidden;transition:border-color .15s}
.market-product.is-selected{border-color:#f97316;box-shadow:inset 0 0 0 1px #f97316}
.market-product-image{position:relative}
.market-photo-open{display:block;width:100%;padding:0;border:0;background:none}
.market-photo{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;overflow:hidden;background:linear-gradient(135deg,#fff7ed,#f1f5f9)}
.market-photo>[data-photo-placeholder]{font-size:44px;opacity:.7}
.market-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.market-photo img.hidden{display:none}
.market-add{position:absolute;bottom:10px;right:10px;width:44px;height:44px;border-radius:50%;background:#f97316;color:white;font-size:29px;line-height:1;box-shadow:0 3px 8px #ea580c33}
.market-selected-badge{position:absolute;right:8px;top:8px;background:#f97316;color:white;border-radius:20px;padding:3px 9px;font-size:12px;font-weight:600}
.market-product-info{padding:12px}
.market-product-info h3{font-size:16px;font-weight:600;line-height:1.5;min-height:48px;color:#1e293b;overflow-wrap:anywhere}
.market-pack{font-size:12px;color:#94a3b8;line-height:1.5;margin:5px 0;min-height:18px;overflow-wrap:anywhere}
.market-price{text-align:left;display:block;width:100%;min-height:44px;line-height:1.4}
.market-price strong{color:#ea580c;font-size:17px}
.market-price span{font-size:12px;color:#94a3b8}
.market-count-control{display:flex;align-items:center;border:1px solid #ffedd5;background:#fff7ed;border-radius:10px;overflow:hidden;margin-top:8px}
.market-count-control button{min-width:0;flex:1;min-height:44px;font-size:18px;color:#9a3412}
.market-count-control button:nth-child(2){font-size:14px;font-weight:600;overflow-wrap:anywhere}
.market-count-control button:disabled{color:#cbd5e1}
.market-empty{grid-column:1/-1;padding:28px;background:#fff;border-radius:16px;color:#64748b;font-size:14px}
#tab-purchase #category-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;padding:0 0 8px;background:transparent;border:0;border-radius:0;gap:10px;scrollbar-width:none}
#tab-purchase #category-tabs button{flex:0 0 auto;min-height:44px;border-radius:28px!important;padding:10px 18px!important;border:0;background:white;color:#64748b;font-size:14px;white-space:nowrap}
#tab-purchase #category-tabs button[aria-pressed="true"]{background:#f97316;color:#fff}
.purchase-table-panel{display:none}
.market-table-mode .purchase-table-panel{display:block}
.market-table-mode #market-featured-section,.market-table-mode #market-products,.market-table-mode .market-section-title-grid{display:none}
#purchase-advanced{padding:16px;background:white;border:1px solid #e2e8f0;border-radius:16px}
#purchase-advanced>summary{min-height:44px;color:#64748b;font-size:14px;cursor:pointer}
.market-cart-dock{display:none;position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 32px),760px);z-index:45;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(105deg,#ff7b08,#fb8d39);color:white;border-radius:24px;box-shadow:0 12px 25px #f9731633;text-align:left}
.market-home .market-cart-dock:not([hidden]){display:flex}
.market-cart-dock .cart-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:#ffffff26;border-radius:50%;font-size:24px}
.market-cart-dock .cart-caption{flex:1;min-width:0}
.cart-caption strong,.cart-caption small{display:block}
.cart-caption strong{font-size:18px}
.cart-caption small{font-size:12px;opacity:.9}
.market-cart-dock>strong{font-size:23px;white-space:nowrap}
.market-cart-dock .cart-arrow{font-size:24px}
.market-cart-dock[hidden]{display:none}
body.purchase-cart-open{background:white}
body.purchase-cart-open>header,body.purchase-cart-open>main{display:none}
body.purchase-cart-open .market-cart-dock,body.history-detail-open .market-cart-dock,body.recipe-detail-open .market-cart-dock,body.supplier-detail-open .market-cart-dock{display:none}
.purchase-cart-page{min-height:100dvh;background:white}
.purchase-cart-panel{max-width:800px;margin:auto;padding:0 20px 130px}
.purchase-cart-header{position:sticky;top:0;z-index:10;background:white;border-bottom:1px solid #f1f5f9;display:flex;justify-content:space-between;align-items:center;padding:12px 0;color:#64748b;font-size:13px}
.purchase-cart-header button{min-height:44px;padding:10px 12px;border-radius:12px;color:#9a3412;background:#fff7ed}
.purchase-cart-panel>h2{font-size:26px;font-weight:700;margin-top:24px}
.purchase-cart-panel>p{font-size:13px;color:#64748b;margin:8px 0 20px}
.market-cart-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;padding:18px 0;border-bottom:1px solid #f1f5f9;align-items:start}
.market-cart-item .market-photo{width:64px;height:72px;border-radius:12px;aspect-ratio:auto}
.market-cart-item h3{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.market-cart-item p{font-size:12px;color:#94a3b8}
.market-cart-item .market-count-control{max-width:148px}
.market-cart-line-total{text-align:right;font-size:14px;color:#9a3412}
.market-cart-line-total button{display:block;min-height:44px;padding:8px;margin-left:auto;color:#94a3b8;font-size:12px}
.purchase-cart-checkout{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,800px);background:#fff;padding:16px 20px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px #0f172a08;display:flex;align-items:center;gap:14px}
.purchase-cart-checkout>div{flex:1}
.purchase-cart-checkout span,.purchase-cart-checkout strong{display:block}
.purchase-cart-checkout span{font-size:12px;color:#64748b}
.purchase-cart-checkout strong{font-size:22px;color:#ea580c}
.purchase-cart-checkout button{min-height:48px;border-radius:14px;background:#f97316;color:#fff;padding:12px 20px;font-weight:600}
.purchase-cart-checkout button:disabled{background:#e2e8f0;color:#94a3b8}
@media(max-width:1000px){.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.market-featured-strip>.market-product{flex-basis:156px}
.market-product-info{padding:10px}
.market-product-info h3{font-size:14px;min-height:42px}
.market-price strong{font-size:16px}
.market-home main{padding-left:12px;padding-right:12px}
.market-title-row h2{font-size:22px}
.market-cart-dock{padding:12px 14px;gap:10px;border-radius:22px}
.market-cart-dock>strong{font-size:20px}
.market-cart-dock .cart-caption strong{font-size:16px}
.market-cart-item{grid-template-columns:52px minmax(0,1fr);gap:10px}
.market-cart-item .market-photo{width:52px;height:64px}
.market-cart-line-total{grid-column:2;display:flex;justify-content:space-between;align-items:center}
.market-cart-line-total button{margin-left:0}
.purchase-cart-checkout strong{font-size:19px}
.purchase-cart-checkout button{padding:12px 14px;font-size:14px}
.market-search-row{gap:6px}
.market-search-row>button{padding:10px;font-size:12px}
}


.market-photo>[data-photo-placeholder]{display:grid;justify-items:center;gap:8px}
.market-photo>[data-photo-placeholder] small{font-size:11px;color:#94a3b8;font-weight:400}
.market-cart-item .market-photo>[data-photo-placeholder] small{display:none}
.market-cart-item .market-photo>[data-photo-placeholder]{font-size:26px}

body.purchase-cart-open .market-cart-dock:not([hidden]),body.history-detail-open .market-cart-dock:not([hidden]),body.recipe-detail-open .market-cart-dock:not([hidden]),body.supplier-detail-open .market-cart-dock:not([hidden]){display:none}


.market-featured-strip .market-count-control{display:none}
.market-featured-strip .market-photo{aspect-ratio:1.2}
.market-featured-strip .market-product-info h3{min-height:36px;font-size:14px}
.market-heading-actions{display:flex;gap:8px;align-items:center}
.market-title-row{flex-wrap:wrap}
.market-home.market-menu-expanded .app-nav{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));overflow:visible}
.market-home.market-menu-expanded .app-tab{min-width:0;flex-direction:column;white-space:normal}
#purchase-cart-title:focus{outline:none}
@media(max-width:900px){.market-home.market-menu-expanded .app-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:380px){.market-heading-actions{margin-left:auto}
.market-title-row h2{font-size:21px}
}

@media(max-width:640px){
.market-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#market-products .market-product{border-radius:13px}
#market-products .market-product-info{padding:8px}
#market-products .market-product-info h3{font-size:12px;min-height:36px;line-height:1.5}
#market-products .market-pack{font-size:10px;margin:4px 0}
#market-products .market-price strong{font-size:13px}
#market-products .market-price span{font-size:10px}
#market-products .market-add{width:44px;height:44px;right:5px;bottom:5px;font-size:26px}
#market-products .market-selected-badge{right:4px;top:4px;padding:2px 6px;font-size:10px}
#market-products .market-photo>[data-photo-placeholder]{font-size:30px;gap:4px}
#market-products .market-photo>[data-photo-placeholder] small{font-size:9px}
#market-products .market-count-control button{min-height:44px;font-size:16px}
#market-products .market-count-control button:nth-child(2){font-size:12px}
}
@media(min-width:641px){.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.market-featured-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;overflow:visible;padding:8px 0 12px;scroll-snap-type:none}.market-featured-strip>.market-product{min-width:0}.market-featured-note{font-size:12px;color:#64748b;margin-top:6px}.market-featured-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.market-featured-actions button{min-height:44px;padding:10px 18px;border-radius:24px;background:#fff7ed;color:#9a3412;font-size:14px}.market-featured-actions button[hidden]{display:none}.market-pin{position:absolute;left:4px;top:4px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#ffffffed;color:#c2410c;font-size:24px;box-shadow:0 1px 4px #0f172a14}.market-pin:disabled{opacity:.5}.market-pin[aria-pressed="true"]{background:#fff1e6}.market-product .market-selected-badge{max-width:calc(100% - 50px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:640px){.market-featured-strip{gap:8px}.market-featured-strip .market-product{border-radius:13px}.market-featured-strip .market-product-info{padding:8px}.market-featured-strip .market-product-info h3{font-size:12px;min-height:36px}.market-featured-strip .market-price strong{font-size:13px}.market-featured-strip .market-price span,.market-featured-strip .market-pack{font-size:10px}.market-featured-strip .market-photo>[data-photo-placeholder]{font-size:30px}.market-featured-strip .market-photo>[data-photo-placeholder] small{font-size:9px}.market-featured-strip .market-photo{aspect-ratio:1}.market-featured-strip .market-add{right:5px;bottom:5px}.market-featured-strip .market-selected-badge{right:4px;top:4px;padding:2px 6px;font-size:10px}}

#market-products .market-pin,#market-featured .market-pin{width:28px;height:28px;left:5px;top:5px;font-size:18px;box-shadow:0 1px 3px #0f172a0d}
#market-products .market-add,#market-featured .market-add{width:32px;height:32px;right:6px;bottom:6px;font-size:22px;box-shadow:0 2px 5px #ea580c22}
.market-product .market-selected-badge{max-width:calc(100% - 38px)}
#market-products .market-product-info h3,#market-featured .market-product-info h3{margin-bottom:2px}
#market-featured,#market-products{align-items:start}
#market-featured .market-product-info,#market-products .market-product-info{display:flex;flex-direction:column;gap:3px;padding:8px}
#market-featured .market-product-info h3,#market-products .market-product-info h3{min-height:0;margin:0;line-height:1.35}
#market-featured .market-pack,#market-products .market-pack{min-height:0;margin:0;line-height:1.35}
#market-featured .market-price,#market-products .market-price{min-height:0;padding:0;margin:0;line-height:1.4}
#market-featured .market-count-control,#market-products .market-count-control{margin-top:4px}

#catalog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}#catalog-cards .market-product-info{display:flex;flex-direction:column;gap:3px;padding:8px}#catalog-cards h3{min-height:0;margin:0;font-size:15px;line-height:1.35}#catalog-cards .market-pack{min-height:0;margin:0;font-size:11px}#catalog-cards .market-product{border-radius:14px}.catalog-price{line-height:1.4;margin:3px 0}.catalog-price strong{font-size:16px;color:#ea580c}.catalog-price span{font-size:12px;color:#94a3b8}.catalog-card-actions{display:flex;gap:6px;margin-top:5px}.catalog-card-actions button{flex:1;min-width:0;min-height:40px;border-radius:9px;background:#fff7ed;color:#9a3412;font-size:13px}.catalog-delete{position:absolute;right:5px;top:5px;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#b91c1c;background:#ffffffed}.catalog-search-label{display:block;font-size:13px;color:#64748b}.catalog-search-label input{display:block;width:100%;min-width:0;min-height:46px;margin-top:6px;background:white;border:1px solid #e2e8f0;padding:10px 16px;border-radius:24px;font-size:16px}#catalog-category-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}#catalog-category-tabs button{flex-shrink:0;min-height:44px;border-radius:24px;border:0;padding:10px 16px;background:white;color:#64748b;font-size:13px}#catalog-category-tabs button[aria-pressed="true"]{color:white;background:#f97316}.catalog-settings{padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:14px}.catalog-settings summary{min-height:44px;font-size:14px;color:#64748b;cursor:pointer}.catalog-settings>div{margin-top:12px}#catalog-cards .market-photo>[data-photo-placeholder]{font-size:36px}#catalog-cards .market-photo>[data-photo-placeholder] small{font-size:10px}@media(max-width:640px){#catalog-cards{gap:8px}#catalog-cards h3{font-size:12px}#catalog-cards .catalog-price strong{font-size:13px}#catalog-cards .catalog-price span,#catalog-cards .market-pack{font-size:10px}#catalog-cards .market-photo>[data-photo-placeholder]{font-size:30px}.catalog-card-actions{gap:4px}.catalog-card-actions button{font-size:11px}#catalog-cards .market-product{border-radius:13px}}

.market-photo img.catalog-illustration { object-fit: contain; padding: 8px; background: #fff; }

#direct-photo-notice { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); z-index: 120; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 14px; padding: 14px 16px; box-shadow: 0 4px 20px #0002; display: flex; align-items: center; gap: 12px; font-size: 14px; }
#direct-photo-notice[hidden] { display: none; }
#direct-photo-status { flex: 1; }
#direct-photo-dismiss { min-width: 40px; min-height: 40px; font-size: 24px; }
#direct-photo-dismiss:disabled { opacity: .35; }

/* Order summary: compact rows and one clear sharing destination. */
#history-modal .order-detail-panel { max-width:720px; padding:0 18px 28px; }
#history-modal .order-detail-header { padding:8px 0; margin-bottom:16px; }
#history-modal .order-detail-header button { background:transparent; padding:8px 4px; border-radius:8px; }
#history-detail-title { font-size:22px; line-height:1.35; padding:0; margin:0 0 6px; }
.order-meta { display:flex; flex-wrap:wrap; gap:2px 12px; color:#7b8493; font-size:11px; line-height:1.5; }
.order-code { overflow-wrap:anywhere; }
.order-progress { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 6px; }
.order-progress > span { background:#f5f6f8; color:#64748b; border-radius:6px; padding:5px 8px; font-size:11px; }
.order-progress > span:first-child { color:#9a3412; background:#fff7ed; }
.order-line { display:flex; align-items:flex-start; gap:4px; padding:11px 0 8px; border-bottom:1px solid #eef0f3; }
.order-line-check { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; margin-top:-7px; cursor:pointer; }
.order-line-check input { width:18px; height:18px; accent-color:#ea580c; }
.order-line-main { flex:1; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.order-line-description { min-width:0; }
.order-line-description > strong { display:block; font-size:14px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.order-line-description p { margin-top:2px; color:#64748b; font-size:12px; line-height:1.5; }
.order-line-description p span { color:#94a3b8; }
.order-line-side { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.order-line-price { color:#c2410c; font-variant-numeric:tabular-nums; white-space:nowrap; font-size:13px; font-weight:600; line-height:1.5; }
.order-line-receipt { display:block; margin-top:4px; color:#64748b; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.order-line-receipt span { color:#94a3b8; }
.order-line-side button { padding:4px 8px; color:#9a3412; background:#fff7ed; border-radius:8px; font-size:11px; }
.order-line.is-checked .order-line-description > strong { color:#94a3b8; text-decoration:line-through; }
.order-progress .is-complete, .order-line-receipt.is-complete { color:#15803d; }
#history-total { margin-top:12px; padding:10px 12px; border:0; border-radius:10px; font-size:13px; }
#history-total .text-right { font-size:15px; }
#history-modal .order-share-settings { margin:14px 0 0; padding:8px 12px; background:#fafafa; border-radius:10px; }
#history-modal .order-share-settings label { min-height:36px; font-size:12px; }
#history-modal .order-share-settings input { width:17px; height:17px; }
#history-modal .order-share-settings p { font-size:10px; margin:0 0 2px 27px; }
.order-recipient-section { border-top:1px solid #eef0f3; padding-top:16px; margin-top:16px; scroll-margin-top:64px; }
.order-recipient-section h3 { font-size:16px; font-weight:600; }
.order-recipient-section > p { font-size:11px; color:#7b8493; margin:4px 0 10px; }
.order-search-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#history-modal #order-recipient-search { width:100%; min-height:44px; border:1px solid #e8ebef; border-radius:10px; padding:9px 12px; margin:0 0 4px; background:#fafbfc; font-size:13px; }
#order-recipient-status:empty { display:none; }
#order-whatsapp-recipients { overflow:visible; max-height:none; }
.order-recipient { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,44%); align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #eef0f3; }
.order-recipient strong, .order-recipient small { display:block; overflow-wrap:anywhere; }
.order-recipient-name > strong { font-size:13px; font-weight:600; line-height:1.5; }
.order-recipient-name > small { font-size:11px; color:#94a3b8; margin-top:2px; }
.order-recipient-contacts { display:grid; gap:4px; }
.order-recipient-contacts > button { display:flex; align-items:center; gap:6px; text-align:left; min-height:48px; width:100%; padding:6px 8px; border:1px solid #e5f2e9; border-radius:9px; background:#f6fcf8; color:#166534; }
.order-recipient-contacts > button img { width:18px; height:18px; }
.order-recipient-contacts > button span:nth-child(2) { flex:1; min-width:0; }
.order-recipient-contacts > button strong { font-size:10px; font-weight:500; }
.order-recipient-contacts > button small { font-size:12px; font-variant-numeric:tabular-nums; white-space:normal; }
.order-recipient-contacts > button:disabled { opacity:.5; }
.order-recipient-contacts p, .order-recipient-empty { color:#94a3b8; font-size:11px; line-height:1.6; }
.order-recipient-other { min-height:44px; padding:8px 0; color:#64748b; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.order-more-actions { margin-top:16px; border-top:1px solid #eef0f3; border-bottom:1px solid #eef0f3; }
.order-more-actions > summary { min-height:48px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; list-style:none; font-size:13px; color:#64748b; }
.order-more-actions > summary::-webkit-details-marker { display:none; }
.order-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding-bottom:12px; }
.order-action-grid button { border:1px solid #edf0f3; border-radius:8px; padding:8px; background:#fafbfc; font-size:12px; color:#475569; }
.order-action-grid .order-action-danger { color:#dc2626; }
@media (max-width:360px) { #history-modal .order-detail-panel { padding:0 12px 24px; } .order-line-main { gap:4px; } .order-line-price { font-size:12px; } .order-recipient { gap:8px; grid-template-columns:minmax(0,1fr) 132px; } }

/* Quantity changes never resize cards or replace their photographs. */
.market-count-control[hidden], .market-selected-badge[hidden] { display:none; }
#tab-purchase .market-product-image .market-count-control { display:flex; position:absolute; left:6px; bottom:6px; width:32px; height:32px; margin:0; border:0; border-radius:50%; background:#fff7ed; box-shadow:0 2px 6px #0001; }
#tab-purchase .market-product-image .market-count-control button { flex:none; width:32px; min-height:32px; font-size:20px; }
.market-product-image .market-count-control button:nth-child(2), .market-product-image .market-count-control button:nth-child(3) { display:none; }
.market-selected-badge { max-width:calc(100% - 42px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Autosave messages must not change the header height during repeated taps. */
#sync-status { min-width:0; min-height:16px; line-height:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

#tab-purchase .market-product-image .market-count-control[hidden] { display:none; }

/* Product editor is a normal page with document scrolling and a persistent save action. */
body.catalog-editor-open > header, body.catalog-editor-open > main, body.catalog-editor-open .market-cart-dock { display:none; }
.catalog-editor-page { min-height:100dvh; background:#fff; }
.catalog-editor-panel { max-width:680px; margin:0 auto; padding:0 18px calc(28px + env(safe-area-inset-bottom)); }
.catalog-editor-header { position:sticky; top:0; z-index:25; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; background:#fff; border-bottom:1px solid #eef0f3; }
.catalog-editor-header > span { color:#94a3b8; font-size:12px; }
.catalog-editor-header button { min-height:44px; padding:8px 10px; border-radius:10px; color:#9a3412; font-size:14px; }
.catalog-editor-header #catalog-save { background:#ea580c; color:#fff; padding:10px 20px; font-weight:600; }
.catalog-editor-header #catalog-save:disabled { opacity:.5; }
#catalog-modal-title { margin:20px 0 16px; color:#1e293b; font-size:22px; font-weight:700; }
#catalog-editor-status:empty { display:none; }
#catalog-editor-status { color:#9a3412; background:#fff7ed; padding:10px 12px; border-radius:10px; margin-bottom:16px; font-size:13px; }
#catalog-editor-form { scroll-margin-top:72px; }
#catalog-editor-form input, #catalog-editor-form select { font-size:16px; min-height:44px; min-width:0; }
#catalog-editor-form button { min-height:44px; }
#catalog-editor-form > div:first-child { font-size:13px; }
#catalog-editor-form fieldset, #catalog-editor-form .grid, #catalog-editor-form .grid > * { min-width:0; }
#catalog-editor-form input, #catalog-editor-form select, #catalog-editor-form textarea { scroll-margin-top:90px; scroll-margin-bottom:24px; }
