/* Company product navigation. Kept separate from language selection and page styles. */
.ymw-products-switcher, .ymw-products-section {
  --products-ink: #173e33; --products-muted: #49665b; --products-line: #d4e5db;
  --products-accent: #096c52; --products-soft: #f0f7f3;
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", Tahoma, Arial, sans-serif;
  color: var(--products-ink); text-align: start; letter-spacing: normal;
}
.ymw-products-switcher *, .ymw-products-section * { box-sizing: border-box; }
/* The native language control keeps its position; this occupies its title area. */
.ymw-language-bar .ymw-language-title { visibility: hidden; }
.ymw-products-switcher {
  position: fixed; z-index: 22010; top: 0;
  inset-inline-start: max(16px, calc((100% - 1200px) / 2));
  width: min(160px, calc(100vw - 180px)); min-width: 100px;
}
.ymw-products-switcher details { position: relative; }
.ymw-products-switcher summary {
  display: flex; align-items: center; gap: 8px; min-height: 47px;
  margin: 0; padding: 4px 0; border: 0; background: transparent;
  color: var(--products-ink); font-size: 13px; font-weight: 650;
  list-style: none; cursor: pointer; overflow-wrap: anywhere; line-height: 1.3;
}
.ymw-products-switcher summary::-webkit-details-marker { display: none; }
.ymw-products-switcher summary::after { content: '⌄'; margin-inline-start: auto; font-size: 17px; }
.ymw-products-switcher summary svg { width: 18px; height: 18px; flex: none; color: var(--products-accent); }
.ymw-products-switcher summary:focus-visible, .ymw-products-switcher a:focus-visible, .ymw-products-section a:focus-visible { outline: 3px solid var(--products-accent); outline-offset: 3px; }
.ymw-products-popover {
  display: grid; gap: 4px; position: absolute; top: 100%; inset-inline-start: 0;
  width: 350px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 72px);
  overflow-y: auto; padding: 10px; background: #fff; border: 1px solid var(--products-line);
  border-radius: 14px; box-shadow: 0 16px 42px #16392e24;
}
.ymw-products-popover a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center;
  min-height: 76px; padding: 12px; border-radius: 9px; color: var(--products-ink);
  text-decoration: none; touch-action: manipulation;
}
.ymw-products-popover a:hover { background: var(--products-soft); }
.ymw-products-popover img { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.ymw-products-popover strong { display: block; color: var(--products-ink); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ymw-products-popover small { display: block; margin-top: 3px; color: var(--products-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.ymw-products-section { clear: both; display: block; width: min(1200px, calc(100% - 40px)); margin: 48px auto; }
.ymw-products-section h2 { margin: 0 0 22px; padding: 0; color: var(--products-ink); font-size: clamp(25px, 3vw, 32px); line-height: 1.4; font-weight: 700; }
.ymw-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ymw-products-card {
  display: grid; align-content: start; justify-items: start; gap: 14px;
  min-width: 0; padding: 26px; background: #fff; color: var(--products-ink);
  border: 1px solid var(--products-line); border-radius: 18px; text-decoration: none; touch-action: manipulation;
}
.ymw-products-card:hover { border-color: var(--products-accent); background: var(--products-soft); }
.ymw-products-card img { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.ymw-products-card strong { color: var(--products-ink); font-size: 20px; line-height: 1.45; overflow-wrap: anywhere; }
.ymw-products-card p { margin: 0; padding: 0; color: var(--products-muted); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.ymw-products-card > span { display: inline-flex; align-items: center; min-height: 44px; color: var(--products-accent); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 680px) {
  .ymw-products-section { width: calc(100% - 32px); margin-block: 32px; }
  .ymw-products-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ymw-products-card { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; padding: 22px; }
  .ymw-products-card img { grid-row: 1 / 4; }
  .ymw-products-card strong { font-size: 18px; }
  .ymw-products-card > p, .ymw-products-card > span { grid-column: 2; }
  .ymw-products-switcher { width: min(140px, calc(100vw - 178px)); }
  .ymw-products-switcher summary { gap: 5px; font-size: 12px; }
}
