/* Shared product table: product center and brand-related products, 2026-10-16. */
/* Both list searches share the compact 90% desktop footprint; text stays legible. */
:is(.pc-search, .brand-product-search) { width: 351px; max-width: 100%; padding: 3px; }
:is(.pc-search, .brand-product-search) input[type=search] { padding: 6px 9px; }
:is(.pc-search, .brand-product-search) button { padding: 6px 18px; line-height: 22px; font-size: 12px; }
[data-ali-product-row] { cursor: pointer; }
:is(.pc-table, .brand-products) {
  --ali-table-heading: #6530c6;
  --ali-table-alt: #fbfbfc;
  --ali-table-grid: #d5d3dc;
  --ali-table-hover: #fff0d2;
  --ali-table-accent: #efb180;
  --ali-table-active: var(--ali-orange, #ff7b00);
}
:is(.pc-table, .brand-products) th {
  padding: 10px 16px;
  background: var(--ali-table-heading);
  color: #fff;
}
:is(.pc-table, .brand-products) td {
  padding: 10px 16px;
  line-height: 1.5;
  vertical-align: middle;
}
:is(.pc-table, .brand-products) td:first-child a { color: inherit; }
:is(.pc-table, .brand-products) :is(th, td) + :is(th, td) {
  border-left: 1px solid var(--ali-table-grid);
}
:is(.pc-table, .brand-products) tbody tr:nth-child(odd) { background: #fff; }
:is(.pc-table, .brand-products) tbody tr:nth-child(even) { background: var(--ali-table-alt); }
/* Soft orange lift follows the supplied table reference, without changing row layout. */
:is(.pc-table, .brand-products) [data-ali-product-row] td {
  transition: transform .12s ease;
}
@media (hover: hover) and (pointer: fine) {
  :is(.pc-table, .brand-products) [data-ali-product-row]:hover td {
    background: var(--ali-table-hover); transform: translateY(-1px);
    box-shadow: 0 4px 12px #f796461a;
  }
  :is(.pc-table, .brand-products) [data-ali-product-row]:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--ali-table-accent), 0 4px 12px #f796461a;
  }
}
:is(.pc-table, .brand-products) [data-ali-product-row]:has(a:focus-visible) td { background: var(--ali-table-hover); }
:is(.pc-table, .brand-products) [data-ali-product-row]:has(a:focus-visible) td:first-child { box-shadow: inset 3px 0 0 var(--ali-table-accent); }
/* Links are navigation, not a persistent selected row. Return/back may restore
   focus, so neither focus-within nor pointer focus changes the row's text color. */
:is(.pc-table, .brand-products) a:visited { color: inherit; }
:is(.pc-table, .brand-products) td:first-child a:is(:link, :visited, :hover, :focus, :active) { text-decoration: none; }
:is(.pc-table-scroll, .brand-table-scroll):focus:not(:focus-visible),
:is(.pc-table, .brand-products) a:focus:not(:focus-visible) { outline: none; }
:is(.pc-table-scroll, .brand-table-scroll):focus-visible { outline: 2px solid #7d49df; outline-offset: 3px; }
:is(.pc-table, .brand-products) a:focus-visible {
  outline: 2px solid #a95d25;
  outline-offset: 2px;
}
@media (max-width: 768px), (hover: none), (pointer: coarse) {
  :is(.pc-table, .brand-products) td:first-child a:is(:focus, :focus-visible, :active) {
    outline: none;
    box-shadow: none;
  }
  :is(.pc-table, .brand-products) td:first-child a:focus-visible {
    outline: 2px solid #a95d25;
    outline-offset: 2px;
  }
}
:is(.pc-table, .brand-products) ::selection {
  color: #454951;
  background: #ffe5c8;
}
@media (prefers-reduced-motion: reduce) {
  :is(.pc-table, .brand-products) [data-ali-product-row] td { transition: none; transform: none !important; }
}
/* The capsule itself supplies the focus feedback, without an inner rectangle. */
.product-center .pc-search input[type="search"],
.product-center .pc-search input[type="search"]:focus,
.product-center .pc-search input[type="search"]:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
@media (max-width: 640px) {
  :is(.pc-table, .brand-products) th { padding: 9px 12px; }
  :is(.pc-table, .brand-products) td { padding: 9px 12px; }
}
