/* v40 — focused admin review cards */
.seller-identity{margin:12px 0 18px;padding:13px 15px;background:#f6f9f9;border-left:3px solid var(--gold);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;color:#43565b;font-size:.78rem}
.seller-identity b{color:var(--ink)}
.inventory-card{grid-template-columns:minmax(0,1fr) 170px}
.inventory-main{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:start}
.inventory-media{display:grid;gap:9px}
.inventory-thumb{height:auto;aspect-ratio:4/3;padding:8px;border:1px solid var(--line);background:#f8f9fa;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.72rem;overflow:hidden}
.inventory-thumb img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.catalog-indicator,.preview-button,.more-toggle{min-height:34px;border:1px solid #bdcacc;background:#fff;color:var(--ink);font-weight:bold;font-size:.72rem;cursor:pointer;padding:7px 10px;text-align:center}
.catalog-indicator{color:#a33;border-color:#e1bcbc;background:#fffafa}
.catalog-indicator.disabled{color:#8a979a;border-color:var(--line);background:#f7f9f9;cursor:default}
.primary-actions{display:grid;gap:8px}
.primary-actions button{width:100%}
.action-menu{position:relative}
.action-menu summary{list-style:none}.action-menu summary::-webkit-details-marker{display:none}
.action-menu[open] .more-toggle{background:#eef3f3}
.action-menu-panel{display:grid;gap:7px;margin-top:7px;padding:9px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 24px rgba(20,37,42,.12)}
.action-menu-panel label,.action-menu-panel button{width:100%;min-height:33px;margin:0;padding:7px;border:1px solid var(--line);background:#fff;font-size:.7rem;cursor:pointer;text-align:center}
.pending-card .review-product-content{min-width:0}
.preview-dialog{width:min(900px,calc(100% - 32px));border:0;padding:28px;box-shadow:0 28px 80px rgba(8,26,32,.28)}
.preview-dialog::backdrop{background:rgba(10,29,35,.62)}
.preview-dialog .dialog-title{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:14px}
.preview-dialog .dialog-title button{border:0;background:none;font-size:1.8rem;cursor:pointer}
.preview-customer-card{display:grid;grid-template-columns:minmax(230px,34%) 1fr;border:1px solid var(--line);background:#fff}
.preview-image{min-height:300px;aspect-ratio:4/3;padding:12px;background:#f8f9fa;display:flex;align-items:center;justify-content:center;color:var(--muted);overflow:hidden}
.preview-image img{display:block;width:100%;height:100%;max-height:420px;object-fit:contain;object-position:center}
.preview-copy{padding:30px}.preview-copy h3{font-size:1.65rem;margin:12px 0}.preview-copy p{color:var(--muted);line-height:1.7}.preview-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:22px}.preview-meta div{border-top:1px solid var(--line);padding-top:10px}.preview-meta small{display:block;color:var(--muted)}
html[dir="rtl"] .seller-identity{border-left:0;border-right:3px solid var(--gold)}
@media(max-width:900px){.inventory-card{grid-template-columns:1fr}.inventory-main{grid-template-columns:120px minmax(0,1fr)}.primary-actions{grid-template-columns:repeat(3,1fr)}.preview-customer-card{grid-template-columns:1fr}.preview-image{min-height:220px}}
@media(max-width:600px){.seller-identity{grid-template-columns:1fr}.inventory-main{grid-template-columns:1fr}.inventory-thumb{height:auto}.primary-actions{grid-template-columns:1fr}.preview-meta{grid-template-columns:1fr}}

/* v43 — show complete product photos without cropping */
.product-card .image{width:100%;height:auto;aspect-ratio:4/3;padding:10px;background:#f8f9fa;overflow:hidden}
.product-card .image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}

/* v44 — bilingual customer favorites */
.market-title-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.favorites-toggle{white-space:nowrap}.favorites-toggle span{display:inline-flex;min-width:22px;height:22px;margin-inline-start:6px;padding:0 6px;border-radius:12px;align-items:center;justify-content:center;background:#e9eeee;font-size:.72rem}.favorites-toggle.active{border-color:var(--gold);background:#fff8df}.favorites-toggle.active span{background:var(--gold)}
.product-card .image{position:relative}
.favorite-btn{position:absolute;z-index:2;top:12px;right:12px;width:42px;height:42px;padding:0;border:1px solid rgba(20,37,42,.18);border-radius:50%;background:rgba(255,255,255,.94);color:#52676c;font-size:1.55rem;line-height:1;cursor:pointer;box-shadow:0 5px 16px rgba(20,37,42,.14);transition:transform .18s ease,color .18s ease,background .18s ease}
.favorite-btn:hover{transform:scale(1.08);color:#a67600}.favorite-btn.saved{color:#a67600;background:#fff4c9;border-color:#dfb83d}
html[dir="rtl"] .favorite-btn{right:auto;left:12px}
.favorite-notice{position:fixed;z-index:1000;left:50%;bottom:26px;transform:translate(-50%,18px);padding:12px 18px;background:var(--side);color:#fff;border-inline-start:4px solid var(--gold);box-shadow:0 12px 28px rgba(8,26,32,.25);font-size:.82rem;opacity:0;pointer-events:none;transition:.2s ease}.favorite-notice.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){.market-title-actions{margin-top:20px}.market-title-actions>*{flex:1}.favorite-btn{width:40px;height:40px}}

/* v45 — inventory-driven discovery filters */
.dynamic-filters{margin:0 0 24px;padding:18px;background:#fff;border:1px solid var(--line);box-shadow:0 6px 18px rgba(20,37,42,.04)}
.filter-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.filter-heading>div{display:grid;gap:3px}.filter-heading b{font-size:.92rem}.filter-heading span{color:var(--muted);font-size:.72rem}.filter-heading button{border:0;background:none;color:#996f00;font-weight:bold;cursor:pointer}
.filter-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px}.filter-grid label{gap:5px;color:var(--muted);font-size:.68rem}.filter-grid select{height:42px;padding:0 10px;border:1px solid #cfdadc;background:#f9fbfb;color:var(--ink);font-size:.75rem}
@media(max-width:1100px){.filter-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.filter-heading{align-items:flex-start}.filter-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.filter-grid{grid-template-columns:1fr}}
.product-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.product-actions a{padding:9px 10px;border:1px solid #bdcacc;color:var(--ink);text-decoration:none;text-align:center;font-size:.72rem;font-weight:bold}.product-actions a:last-child{border-color:var(--gold);background:#fff8df}

/* v46 — hover filters and compact B2B catalog */
.filter-actions{display:flex;align-items:center;gap:10px}.view-toggle{display:flex;border:1px solid var(--line);background:#fff}.view-toggle button{width:38px;height:34px;border:0;border-inline-end:1px solid var(--line);background:#fff;color:#6b7b80;font-size:1.05rem;cursor:pointer}.view-toggle button:last-child{border-inline-end:0}.view-toggle button[aria-pressed="true"]{background:var(--side);color:#fff}.filter-actions>#clearFilters{padding:8px 4px}
.filter-menu{position:relative;display:block}.filter-menu>select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.filter-trigger{width:100%;height:42px;padding:0 11px;border:1px solid #cfdadc;background:#f9fbfb;color:var(--ink);font-size:.75rem;text-align:start;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filter-options{display:none;position:absolute;z-index:30;top:calc(100% + 2px);inset-inline:0;min-width:210px;max-height:290px;overflow:auto;padding:6px;background:#fff;border:1px solid #cfdadc;box-shadow:0 14px 32px rgba(14,36,42,.18)}.filter-menu:hover .filter-options,.filter-menu:focus-within .filter-options,.filter-menu.open .filter-options{display:grid}.filter-options button{border:0;background:#fff;padding:9px 10px;color:var(--ink);font-size:.73rem;text-align:start;cursor:pointer}.filter-options button:hover,.filter-options button[aria-selected="true"]{background:#fff4cc;color:#684d00}
.catalog.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.catalog.compact-grid .product-card{display:flex;min-width:0;flex-direction:column;cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease}.catalog.compact-grid .product-card:hover{background:#f8fafc;box-shadow:0 8px 22px rgba(18,42,48,.09);transform:translateY(-2px)}.catalog.compact-grid .product-card .image{height:132px;aspect-ratio:auto;padding:8px}.catalog.compact-grid .product-card .body{padding:12px}.catalog.compact-grid .card-verify{margin-bottom:6px}.catalog.compact-grid .product-card h3{display:-webkit-box;margin:8px 0 4px;min-height:2.7em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.35}.catalog.compact-grid .product-card .body>p{display:none}.catalog.compact-grid .product-card .stock{margin-top:9px;padding-top:8px;gap:8px}.catalog.compact-grid .expiry{display:none}.catalog .product-actions{display:none}
.catalog.compact-list{grid-template-columns:1fr;gap:8px}.catalog.compact-list .product-card{display:grid;grid-template-columns:145px minmax(0,1fr);min-height:132px;cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease}.catalog.compact-list .product-card:hover{background:#f8fafc;box-shadow:0 5px 16px rgba(18,42,48,.08)}.catalog.compact-list .product-card .image{height:100%;min-height:132px;aspect-ratio:auto;padding:8px}.catalog.compact-list .product-card .body{position:relative;padding:13px 18px}.catalog.compact-list .card-verify{margin:0 0 5px}.catalog.compact-list .product-card h3{margin:5px 0 3px}.catalog.compact-list .product-card .body>p{display:-webkit-box;margin:7px 0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.78rem;color:var(--muted)}.catalog.compact-list .product-card .stock{margin-top:8px;padding-top:7px}.catalog.compact-list .expiry{position:absolute;top:14px;inset-inline-end:18px;margin:0}.product-card:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media(max-width:1200px){.catalog.compact-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.catalog.compact-grid{grid-template-columns:repeat(2,1fr)}.catalog.compact-list .expiry{position:static;margin-top:7px}}
@media(max-width:600px){.filter-actions{width:100%;justify-content:space-between}.filter-heading{flex-wrap:wrap}.catalog.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog.compact-grid .product-card .image{height:115px}.catalog.compact-list .product-card{grid-template-columns:105px minmax(0,1fr)}.catalog.compact-list .product-card .image{min-height:118px}.favorite-btn{top:7px;right:7px}html[dir="rtl"] .favorite-btn{right:auto;left:7px}}

/* v48 — flat filter toolbar and true compact catalog */
.toolbar.search-only{grid-template-columns:1fr;margin-bottom:10px}.dynamic-filters{margin:0 0 14px;padding:0;background:transparent;border:0;box-shadow:none}.filter-grid{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr)) auto;gap:7px;align-items:end}.filter-grid label>span:first-child{display:none}.filter-trigger{height:38px;background:#fff}.filter-actions{height:38px;white-space:nowrap}.filter-actions>#clearFilters{height:38px;padding:0 10px;border:1px solid var(--line);background:#fff;color:#8a6500}.view-toggle button{height:36px}.trust-legend{margin-top:0;margin-bottom:13px}
.catalog.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.catalog.compact-grid .product-card{min-height:0}.catalog.compact-grid .product-card .image{height:108px;padding:6px}.catalog.compact-grid .product-card .body{padding:9px 10px}.catalog.compact-grid .card-verify{margin-bottom:4px;font-size:.6rem}.catalog.compact-grid .verify{width:18px;height:18px}.catalog.compact-grid .badge{padding:3px 6px;font-size:.56rem}.catalog.compact-grid .product-card h3{min-height:2.5em;margin:6px 0 3px;font-size:.92rem;line-height:1.25}.catalog.compact-grid .product-card .meta{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog.compact-grid .product-card .stock{margin-top:6px;padding-top:6px;font-size:.66rem}.catalog.compact-grid .favorite-btn{top:6px;right:6px;width:34px;height:34px;font-size:1.25rem}html[dir="rtl"] .catalog.compact-grid .favorite-btn{right:auto;left:6px}
.catalog.compact-list .product-card{grid-template-columns:120px minmax(0,1fr);min-height:112px}.catalog.compact-list .product-card .image{min-height:112px}.catalog.compact-list .product-card .body{padding:10px 14px}.catalog.compact-list .product-card .body>p{-webkit-line-clamp:1;margin:5px 0}.catalog.compact-list .product-card h3{font-size:.98rem}.catalog.compact-list .product-card .stock{margin-top:5px;padding-top:5px}
@media(max-width:1050px){.filter-grid{grid-template-columns:repeat(3,1fr)}.filter-actions{justify-content:flex-start}.catalog.compact-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.filter-grid{grid-template-columns:1fr 1fr}.catalog.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.filter-grid{grid-template-columns:1fr}.catalog.compact-grid{grid-template-columns:1fr}}
