.product-browser {
  --product-status-neutral-surface-color: var(--surface-subtle-color);
  --product-status-neutral-border-color: var(--card-border-color);
  --product-status-neutral-text-color: var(--text-color-secondary);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-base);
  color: var(--text-color-primary);
}
.influencer-browse-tabs {
  display: flex;
  border-bottom: 1px solid var(--card-border-color);
  margin-bottom: var(--spacing-lg);
}
.influencer-browse-tabs a {
  flex: 1;
  text-align: center;
  padding: var(--spacing-base) var(--spacing-sm);
  color: var(--text-color-secondary);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.influencer-browse-tabs a.is-active {
  color: var(--brand-primary-active-color);
  border-bottom-color: var(--brand-primary-color);
}
.product-browser-heading h1 { font-size: var(--text-xl); margin: 0 0 var(--spacing-xs); }
.product-browser-heading p { color: var(--text-color-secondary); margin: 0 0 var(--spacing-base); }
.product-search-row { display: flex; gap: var(--spacing-xs); }
.product-search-row input {
  flex: 1; min-width: 0; border: 1px solid var(--card-border-color);
  border-radius: var(--border-radius-sm); padding: var(--spacing-sm);
  background: var(--surface-card-color); font: inherit;
}
.product-search-submit {
  border: 0; border-radius: var(--border-radius-sm); padding: var(--spacing-sm) var(--spacing-base);
  background: var(--brand-primary-color); color: var(--text-color-on-brand); font: inherit; cursor: pointer;
}
.product-state-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-xs); margin: var(--spacing-base) 0; }
.product-state-filters a {
  padding: var(--spacing-xs) var(--spacing-sm); border: 1px solid var(--card-border-color);
  border-radius: var(--border-radius-sm); background: var(--surface-card-color);
  color: var(--text-color-secondary); text-decoration: none; white-space: nowrap; font-size: var(--text-sm);
}
.product-state-filters a { display: flex; align-items: center; justify-content: center; min-height: 42px; font-weight: 600; }
.product-state-filters a.is-active { background: var(--surface-subtle-color); color: var(--brand-primary-active-color); border-color: var(--brand-primary-color); }
.product-active-filters { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); margin-top: var(--spacing-sm); }
.product-active-filters a { display: inline-flex; align-items: center; gap: var(--spacing-xs); max-width: 100%; min-height: 36px; box-sizing: border-box; padding: var(--spacing-xs) var(--spacing-sm); border: 1px solid var(--card-border-color); border-radius: var(--border-radius-lg); background: var(--surface-card-color); color: var(--brand-primary-active-color); font-size: var(--text-xs); text-decoration: none; overflow-wrap: anywhere; }
.product-active-filters a > span:last-child { flex-shrink: 0; font-size: var(--text-base); line-height: 1; }
.product-filter-toolbar { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: var(--spacing-xs); }
.product-primary-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; flex: 1 1 100%; gap: var(--spacing-xs); }
.product-card-category {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  min-height: 1lh;
  color: var(--brand-primary-active-color);
}
.product-category-control,
.product-primary-filters select { width: 100%; min-width: 0; font: inherit; font-size: var(--text-sm); height: 42px; color: var(--text-color-primary); border: 1px solid var(--card-border-color); border-radius: var(--border-radius-sm); background: var(--surface-card-color); padding: 0 var(--spacing-xs); }
.product-reset { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; gap: var(--spacing-2xs); height: 42px; padding: 0 var(--spacing-sm); border: 1px solid var(--card-border-color); border-radius: var(--border-radius-sm); background: var(--surface-card-color); color: var(--text-color-secondary); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.product-reset svg { flex-shrink: 0; }
.product-category-control { max-width: 100%; cursor: pointer; }
.product-date-range { display: flex; gap: var(--spacing-xs); flex-wrap: wrap; margin-top: var(--spacing-xs); align-items: end; }
.product-date-range[hidden] { display: none; }
.product-date-range label { display: grid; gap: var(--spacing-2xs); font-size: var(--text-sm); }
.product-date-range input { max-width: 100%; font: inherit; padding: var(--spacing-xs); border: 1px solid var(--card-border-color); border-radius: var(--border-radius-sm); }
.product-results-heading { margin: var(--spacing-base) 0 var(--spacing-xs); }
.product-results-heading p { margin: 0; white-space: nowrap; }
.product-results-heading strong { color: var(--brand-primary-active-color); }
.product-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-xs); }
.product-card { min-width: 0; background: var(--surface-card-color); border: 1px solid var(--card-border-color); border-radius: var(--border-radius-base); overflow: hidden; display: flex; flex-direction: column; }
.product-card { position: relative; }
.product-card > .product-card-admin-menu {
  position: absolute;
  inset: var(--spacing-xs) var(--spacing-xs) auto;
  z-index: 2;
  pointer-events: none;
}
.product-card-admin-menu > summary {
  margin-inline-start: auto;
  background: var(--surface-card-color);
}
.product-card-admin-menu > summary,
.product-card-admin-menu > .influencer-admin-dropdown { pointer-events: auto; }
.product-card-admin-menu > .influencer-admin-dropdown {
  width: min(100%, 160px);
  max-width: 100%;
  box-sizing: border-box;
  font-size: var(--text-sm);
}
.product-card-image-link { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--surface-subtle-color); color: var(--text-color-secondary); text-decoration: none; }
.product-card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-profile { position:relative; box-sizing:border-box; display:block; width:100%; height:100%; padding:0; overflow:hidden; background:var(--surface-subtle-color); }
.product-card-profile-image { display:block; width:100%; height:100%; border-radius:0; border:0; object-fit:cover; }
.product-status { position: absolute; top: var(--spacing-xs); left: var(--spacing-xs); padding: var(--spacing-2xs) var(--spacing-xs); border: 1px solid transparent; border-radius: var(--border-radius-lg); font-size: var(--text-xs); font-weight: 600; }
.product-status.is-ongoing,
.product-status.is-available { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.product-status.is-upcoming { background: var(--status-info-surface-color); border-color: var(--status-info-border-color); color: var(--status-info-text-color); }
.product-status.is-closing-today { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.product-status.is-unknown { background: var(--product-status-neutral-surface-color); border-color: var(--product-status-neutral-border-color); color: var(--product-status-neutral-text-color); }
.product-status.is-link-removed { background: var(--product-status-neutral-surface-color); border-color: var(--product-status-neutral-border-color); border-style: dashed; color: var(--product-status-neutral-text-color); }
.product-card-body { padding: var(--spacing-sm); flex: 1; display: flex; flex-direction: column; gap: var(--spacing-xs); }
.product-card h2 {
  font-size: var(--text-base);
  line-height: 1.2;
  min-height: 2lh;
  margin: 0;
  overflow-wrap: anywhere;
}
.product-card h2 a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-card-influencer { display: flex; align-items: center; gap: var(--spacing-2xs); color: var(--text-color-secondary); text-decoration: none; min-width: 0; }
.product-card-influencer img { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.product-card-influencer span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--text-sm); }
.product-card-period { display: grid; gap: var(--spacing-2xs); line-height: 1.5; font-size: var(--text-xs); color: var(--text-color-secondary); margin: 0 0 var(--spacing-xs); overflow-wrap: anywhere; }
.product-card-period strong { color: var(--brand-primary-active-color); font-weight: 700; }
.product-card-action { margin-top: auto; text-align: center; padding: var(--spacing-sm) var(--spacing-2xs); border: 1px solid var(--card-border-color); border-radius: var(--border-radius-sm); text-decoration: none; color: var(--text-color-primary); font-size: var(--text-sm); }
.product-card-action.is-primary { background: var(--brand-primary-color); border-color: var(--brand-primary-color); color: var(--text-color-on-brand); }
.product-card-note { margin: 0; font-size: var(--text-xs); color: var(--text-color-secondary); text-align: center; }
.product-empty { text-align: center; padding: var(--spacing-xl) var(--spacing-sm); }
.product-empty h2 { font-size: var(--text-lg); }
.product-empty p { color: var(--text-color-secondary); }
.product-empty a { color: var(--brand-primary-active-color); }
.product-browser a:focus-visible, .product-browser button:focus-visible, .product-browser input:focus-visible, .product-browser select:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }
@media (min-width: 768px) {
  .product-browser { padding: var(--spacing-lg); }
  .ranking-standalone-layout > main > .influencer-container { padding-top: var(--spacing-lg); }
  .product-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-base); }
}
@media (min-width: 1100px) {
  .product-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .product-browser { padding: var(--spacing-xs); }
  .product-state-filters { gap: var(--spacing-2xs); }
  .product-state-filters a { padding: var(--spacing-xs); }
  .product-card-body { padding: var(--spacing-xs); }
  .product-search-row input { font-size: var(--text-sm); }
}
@media (max-width: 767px) {
  .product-browser { padding: var(--spacing-sm); }
  .ranking-standalone-layout > main > .influencer-container { padding-top: var(--spacing-sm); }
  .influencer-browse-tabs { margin-bottom: var(--spacing-base); }
  .influencer-browse-tabs a { padding: var(--spacing-sm); font-size: var(--text-sm); }
  .product-browser-heading h1 { font-size: var(--text-lg); }
  .product-browser-heading p { display: none; }
  .product-search-form { margin-top: var(--spacing-sm); }
  .product-search-row input { min-height: 44px; font-size: 16px; }
  .product-state-filters { gap: var(--spacing-2xs); padding: var(--spacing-2xs); margin: var(--spacing-sm) 0; border-radius: var(--border-radius-sm); background: var(--surface-subtle-color); }
  .product-state-filters a { border-color: transparent; background: transparent; min-height: 36px; padding: var(--spacing-2xs); font-size: var(--text-xs); }
  .product-state-filters a.is-active { background: var(--surface-card-color); border-color: var(--card-border-color); }
  .product-primary-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; }
  .product-results-heading { margin-bottom: var(--spacing-sm); }
  .product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-xs); }
  .product-card { display: flex; padding: 0; }
  .product-card-image-link { width: 100%; aspect-ratio: 1; overflow: hidden; }
  .product-card-body { display: flex; padding: var(--spacing-sm); gap: var(--spacing-xs); }
  .product-status { position: absolute; width: fit-content; padding: var(--spacing-2xs) var(--spacing-xs); font-size: var(--text-xs); line-height: 1.2; }
  .product-card h2 { font-size: var(--text-sm); line-height: 1.5; }
  .product-card-influencer img { width: 20px; height: 20px; }
  .product-card-influencer span { font-size: var(--text-xs); }
  .product-card-period { margin: 0; line-height: 1.5; }
  .product-card-action { margin-top: auto; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: var(--spacing-2xs); font-size: var(--text-xs); }
  .product-card-note { text-align: center; font-size: var(--text-xs); }
  .product-date-range { display: grid; grid-template-columns: minmax(0, 1fr); }
  .product-date-range[hidden] { display: none; }
  .product-date-range input { width: 100%; min-width: 0; box-sizing: border-box; }
}
.product-browser summary:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .product-browser a:hover { color: var(--brand-primary-active-color); }
  .product-card-action.is-primary:hover { color: var(--text-color-on-brand); background: var(--brand-primary-active-color); }
  .product-state-filters a:hover,
  .product-reset:hover { background: var(--surface-subtle-color); border-color: var(--brand-primary-color); }
  .product-card-share:hover { background:var(--surface-subtle-color); color:var(--brand-primary-color); }
}
.product-card-meta { display:flex; align-items:center; justify-content:space-between; gap:4px; }
.product-card-meta .product-status { position:static; order:-1; }
.product-card-share { display:flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:var(--text-color-secondary); cursor:pointer; }
.product-share-dialog { width:min(420px,calc(100% - 24px)); max-height:85dvh; overflow:auto; box-sizing:border-box; padding:20px; border:1px solid var(--card-border-color); border-radius:20px; background:var(--surface-card-color); color:var(--text-color-primary); }
.product-share-dialog::backdrop { background:rgba(0,0,0,.4); }
.product-share-heading { display:flex; align-items:center; justify-content:space-between; }
.product-share-heading h2 { font-size:18px; margin:0; }
.product-share-dialog button { min-height:44px; padding:10px 14px; border:1px solid var(--card-border-color); border-radius:10px; background:var(--surface-subtle-color); color:inherit; cursor:pointer; }
.product-share-close { font-size:24px; }
.product-share-preview { display:flex; gap:12px; margin:20px 0; align-items:center; }
.product-share-preview img { width:64px; height:64px; object-fit:cover; border-radius:10px; }
.product-share-preview div { min-width:0; overflow-wrap:anywhere; }
.product-share-preview p { font-size:12px; color:var(--text-color-secondary); margin:6px 0 0; }
.product-share-dialog input { box-sizing:border-box; width:100%; min-height:44px; border:1px solid var(--card-border-color); border-radius:8px; padding:8px; background:var(--surface-subtle-color); color:inherit; }
.product-share-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.product-share-actions [hidden] { display:none; }
.product-share-status { min-height:20px; font-size:13px; margin-bottom:0; }
@media(max-width:767px) { .product-share-dialog { margin:auto auto 12px; } }

.product-ranking-layout > .product-browser { max-width:none; margin:0; min-width:0; }

.product-card-admin-status {
  position: fixed;
  z-index: 30;
  right: var(--spacing-base);
  bottom: calc(88px + var(--spacing-base));
  width: fit-content;
  max-width: min(360px, calc(100vw - var(--spacing-xl)));
  box-sizing: border-box;
  margin: 0;
  padding: var(--spacing-sm) var(--spacing-base);
  border: 1px solid var(--card-border-color);
  border-radius: var(--border-radius-base);
  background: var(--surface-card-color);
  box-shadow: var(--shadow-dropdown);
  color: var(--text-color-primary);
  font-size: var(--text-sm);
}
.product-card-admin-status:empty { display: none; }
.product-card-category-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--spacing-xs);
  align-items: end;
  padding: var(--spacing-xs);
}
.product-card-category-editor label {
  display: grid;
  gap: var(--spacing-2xs);
  color: var(--text-color-secondary);
  font-size: var(--text-xs);
}
.product-card-category-editor select {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--card-border-color);
  border-radius: var(--border-radius-sm);
  background: var(--surface-card-color);
  color: var(--text-color-primary);
  font: inherit;
}
.product-card-category-editor button {
  min-height: 40px;
  padding: 0 var(--spacing-sm);
  border: 0;
  border-radius: var(--border-radius-sm);
  background: var(--brand-primary-color);
  color: var(--text-color-on-brand);
  font: inherit;
  cursor: pointer;
}
.product-card-category-editor button:disabled {
  opacity: 0.5;
  cursor: wait;
}
