/* Product catalog cards; scoped to avoid changing the order popup or theme. */
.reseller-wholesale-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.reseller-wholesale-heading h2 { margin: 6px 0 10px; color: var(--rsl-text-primary); font: 800 26px/1.2 var(--rsl-font-family); letter-spacing: -.5px; }
.reseller-wholesale-heading p { max-width: 620px; margin: 0; color: var(--rsl-text-secondary); font-size: 13px; line-height: 1.6; }
.reseller-wholesale-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--rsl-primary); }
.reseller-wholesale-count { padding: 8px 12px; border: 1px solid var(--rsl-border); border-radius: 100px; white-space: nowrap; color: var(--rsl-text-secondary); font-size: 12px; background: var(--rsl-bg-card); }
.reseller-wholesale-minimum { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 0 0 14px; border: 1px solid #dbeafe; border-radius: 10px; background: #eff6ff; color: #1e40af; font: 500 11px/1.5 var(--rsl-font-family); }
.reseller-wholesale-minimum strong { display: block; font-size: 12px; }
.reseller-wholesale-card .reseller-wholesale-minimum { min-height: 72px; }
.reseller-wholesale-minimum span:not(.dashicons) { display: block; color: #475569; }
.reseller-wholesale-cart-label { font-size: 11px; color: var(--rsl-primary); margin-top: 4px; }
#qv-wholesale-minimum[hidden] { display: none !important; }
@media (max-width: 600px) {
    .reseller-wholesale-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .reseller-wholesale-heading h2 { font-size: 23px; }
}
.reseller-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 22px;
    align-items: stretch;
}
.reseller-product-grid .reseller-product-card {
    min-width: 0;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.reseller-product-grid .reseller-product-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}
.reseller-product-grid .reseller-card-media {
    padding-top: 0;
    aspect-ratio: 4 / 3;
    margin: 10px 10px 0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.reseller-product-grid .product-thumb {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 22px 22px 30px;
    object-fit: contain;
}
.reseller-product-grid .product-stock-tag {
    top: 4px;
    left: 4px;
    padding: 5px 9px;
    border-radius: 100px;
    font-size: 10px;
    letter-spacing: .03em;
    line-height: 1.5;
}
.reseller-product-grid .product-stock-tag.in-stock { background: #dcfce7; color: #166534; }
.reseller-product-grid .product-stock-tag.out-of-stock { background: #fee2e2; color: #991b1b; }
.reseller-product-grid .product-reseller-tag {
    bottom: 6px;
    right: 4px;
    padding: 5px 9px;
    border: 1px solid #dbeafe;
    border-radius: 100px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 10px;
    line-height: 1.5;
}
.reseller-product-grid .reseller-gallery-strip {
    min-height: 48px;
    padding: 6px 18px;
    border: 0;
    background: #fff;
}
.reseller-product-grid .gallery-thumb-link { flex: 0 0 auto; }
.reseller-product-grid .gallery-thumb-link img { display: block; width: 34px; height: 34px; object-fit: contain; }
.reseller-product-grid .reseller-card-content { padding: 18px; gap: 0; }
.reseller-product-grid .product-title {
    font: 700 15px/1.5 var(--rsl-font-family);
    letter-spacing: -.2px;
    color: #172033;
    margin: 0 0 8px;
    min-height: 67.5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.reseller-product-grid .product-title:hover { color: #2563eb; }
.reseller-product-grid .product-description {
    min-height: 39px;
    margin: 0 0 18px;
    font: 400 12px/1.6 var(--rsl-font-family);
    color: #64748b;
    overflow-wrap: anywhere;
}
.reseller-product-grid .reseller-pricing-box {
    margin: auto 0 14px;
    padding: 14px;
    background: #f5f8ff;
    border: 1px solid #e2eafe;
    border-radius: 12px;
}
.reseller-product-grid .price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    justify-content: space-between;
    font: 400 12px/1.5 var(--rsl-font-family);
}
.reseller-product-grid .price-label { min-width: 0; }
.reseller-product-grid .price-val { max-width: 100%; overflow-wrap: anywhere; }
.reseller-product-grid .retail-row { margin-bottom: 8px; color: #64748b; }
.reseller-product-grid .wholesale-row { display: block; color: #334155; }
.reseller-product-grid .wholesale-row .price-label { display: block; margin-bottom: 4px; }
.reseller-product-grid .wholesale-row .price-val { display: block; }
.reseller-product-grid .wholesale-val { font-size: 19px; line-height: 1.3; color: #1d4ed8; font-weight: 800; }
.reseller-product-grid .reseller-tool-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}
.reseller-product-grid .reseller-btn-tool {
    min-width: 0;
    width: 100%;
    min-height: 38px;
    height: auto;
    padding: 8px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font: 600 11px/1.4 var(--rsl-font-family);
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    gap: 6px;
    box-shadow: none;
}
.reseller-product-grid .reseller-btn-tool .dashicons { flex-shrink: 0; }
.reseller-product-grid .reseller-btn-tool.download-images-btn { grid-column: 1 / -1; background: #f8fafc; }
.reseller-product-grid .reseller-btn-tool:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.reseller-product-grid .reseller-card-footer { margin-top: 0; }
.reseller-product-grid .reseller-card-footer .reseller-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 12px 10px;
    border-radius: 10px;
    border: 0;
    font: 700 12px/1.5 var(--rsl-font-family);
    text-transform: none;
    white-space: normal;
    letter-spacing: 0;
    box-shadow: none;
}
.reseller-product-grid .reseller-card-footer .reseller-btn-primary { color: #fff; background: #2563eb; }
.reseller-product-grid .reseller-card-footer .reseller-btn-primary:hover { background: #1d4ed8; }
.reseller-product-grid .reseller-card-footer .reseller-btn-disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.reseller-product-grid button:focus-visible,
.reseller-product-grid .open-quickview-btn:focus-visible,
.reseller-product-grid a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
@media (max-width: 600px) {
    .reseller-product-grid { gap: 16px; }
    .reseller-product-grid .reseller-card-content { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .reseller-product-grid .reseller-product-card,
    .reseller-product-grid .product-thumb { transition: none; transform: none; }
    .reseller-product-grid .reseller-product-card:hover,
    .reseller-product-grid .reseller-product-card:hover .product-thumb { transform: none; }
}
