
/* AP_CATALOG_PHOTOS_V1: focus the catalog on the actual product photos */
.marketplace .product-thumb, .store-content .product-thumb { height:auto!important; aspect-ratio:4/3; min-height:160px; position:relative; background:#eef2f8; cursor:zoom-in; overflow:hidden; }
.marketplace .product-thumb img, .store-content .product-thumb img { display:block; width:100%; height:100%; object-fit:contain; }
.ap-catalog-gallery-trigger:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.ap-gallery-count { position:absolute;right:8px;bottom:8px;background:#10203ce0;color:white;padding:3px 8px;border-radius:14px;font:12px Arial,sans-serif; }
.ap-catalog-preview {display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}
.ap-catalog-preview img {width:94px;height:80px;object-fit:contain;border:1px solid #94a3b8;border-radius:8px;background:#fff}
.ap-catalog-existing {display:flex;flex-wrap:wrap;gap:12px}
.ap-catalog-existing > div {width:130px}
.ap-catalog-existing img {width:130px;height:115px;object-fit:contain;background:#f1f5f9;border-radius:10px}
.ap-catalog-existing button {padding:8px;margin-top:4px;width:100%;border:1px solid #999;border-radius:7px;cursor:pointer}
.ap-photo-dialog {position:fixed;inset:0;margin:auto;width:min(96vw,900px);height:min(90vh,780px);max-width:unset;max-height:unset;border:0;border-radius:16px;padding:48px 12px 58px;background:#101b2d;color:#fff;box-shadow:0 20px 65px #0009;z-index:9999}
.ap-photo-dialog::backdrop {background:#000c}
.ap-photo-dialog img {width:100%;height:100%;object-fit:contain;display:block}
.ap-photo-dialog button {position:absolute;border:0;border-radius:10px;background:#274b83;color:#fff;padding:8px 13px;font-size:18px;cursor:pointer}
.ap-photo-close {top:8px;right:10px}.ap-photo-prev{left:10px;bottom:12px}.ap-photo-next{right:10px;bottom:12px}
.ap-photo-counter{position:absolute;bottom:20px;left:50%;transform:translateX(-50%)}
@media(max-width:600px){.marketplace .product-thumb,.store-content .product-thumb{min-height:135px}.ap-photo-dialog{padding:44px 8px 55px}}

/* AP_CATALOG_PICKER_V3: selected files, per-photo removal and count */
.ap-catalog-preview .ap-photo-selection-count {flex-basis:100%;font-size:13px;color:#475569}
.ap-catalog-preview .ap-photo-selection-item {position:relative;display:inline-flex;width:100px;height:90px;align-items:center;justify-content:center;border:1px solid #cbd5e1;background:#fff;border-radius:9px;overflow:hidden}
.ap-catalog-preview .ap-photo-selection-item img {width:100%;height:100%;object-fit:contain;border:0;border-radius:0}
.ap-catalog-preview .ap-photo-selection-remove {position:absolute;right:3px;top:3px;width:29px;height:29px;border:0;border-radius:50%;background:#10203ce0;color:white;font:bold 19px Arial;cursor:pointer}

/* AP_SELLER_PRODUCT_THUMBS_V5: compact photo-first inventory list */
.products-table .ap-seller-v5-item{display:flex;align-items:center;gap:12px;min-width:170px}
.products-table .ap-seller-v5-photo{display:flex;align-items:center;justify-content:center;flex:0 0 78px;width:78px;height:68px;overflow:hidden;background:#f0f4fa;border:1px solid #d7e1ee;border-radius:9px;text-decoration:none}
.products-table .ap-seller-v5-photo img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.products-table .ap-seller-v5-no-photo{font:bold 17px/1 Arial,sans-serif;letter-spacing:2px;color:#8da2bd}
.products-table .ap-seller-v5-title{color:inherit;text-decoration:none;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.products-table .ap-seller-v5-title:hover{text-decoration:underline}
.products-table .ap-seller-v5-photo:focus-visible,.products-table .ap-seller-v5-title:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
@media(max-width:700px){
 .products-table .ap-seller-v5-item{gap:9px;min-width:0}
 .products-table .ap-seller-v5-photo{flex-basis:62px;width:62px;height:56px}
}
