.commerce-home {
  --commerce-line: #e2e6ed;
  --commerce-surface: #f5f7fa;
  --commerce-text: #505966;
  --commerce-accent: #275bb0;
}

.commerce-section { padding-block: clamp(36px, 5vw, 68px); }
.commerce-section h2 { font-size: clamp(27px, 3vw, 39px); line-height: 1.25; }
.commerce-section p { margin-top: 12px; color: var(--commerce-text); }
.product-section-home { background: #f4f7fc; border-block: 1px solid var(--commerce-line); }
.product-section-home .commerce-section { max-width: 1140px; padding-block: clamp(32px, 4.5vw, 54px); }
.product-preview {
  min-inline-size: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 1px solid #dce4f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px -26px #253b6854, 0 2px 5px #253b6808;
}
.product-choice { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 9px 14px;
  border-bottom: 1px solid #e7edf6;
  border-radius: 15px 15px 0 0;
  background: #f9fbff;
}
.product-switcher > label, .dashboard-gallery > label {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  color: var(--commerce-text);
  font-size: 14px;
}
.product-switcher > label:hover, .dashboard-gallery > label:hover { background: #eef3fb; }
.product-switcher > input:checked + label {
  background: #eaf1fe;
  border-color: #dbe7fb;
  color: #224e9e;
  font-weight: 650;
}
.product-choice:focus-visible + label { outline: 2px solid var(--commerce-accent); outline-offset: 2px; }
.product-panel { display: none; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); align-items: center; }
.product-preview:has(#view-workflow:checked) #panel-workflow,
.product-preview:has(#view-data:checked) #panel-data,
.product-preview:has(#view-bi:checked) #panel-bi,
.product-preview:has(#view-toolbox:checked) #panel-toolbox { display: grid; }
.product-panel-copy { padding: clamp(18px, 2.5vw, 30px); }
.product-panel h3 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.3; }
.product-panel-copy > p { font-size: 14px; line-height: 1.75; }
.product-shot-button {
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 12px;
  background: radial-gradient(ellipse at 55% 5%, #eaf1fc, #f5f8fc 75%);
  cursor: zoom-in;
}
.product-shot-button:focus-visible { outline-offset: -4px; }
.product-shot-button img {
  width: auto;
  max-width: 100%;
  max-height: 330px;
  height: auto;
  border-radius: 7px;
  box-shadow: 0 0 0 1px #28446714, 0 6px 18px #304b6814;
}
.product-panels { overflow: hidden; border-radius: 0 0 15px 15px; }

.product-panel-copy .preview-note { font-size: 12px; }

.dashboard-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-inline-size: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.dashboard-gallery > label {
  padding: 5px 8px;
  background: #f4f7fb;
  font-size: 12px;
}
.dashboard-gallery > input:checked + label {
  background: #edf3fc;
  border-color: #ccdbf2;
  color: var(--commerce-accent);
}
.dashboard-images { min-width: 0; }
.dashboard-panel { display: none; margin: 0; }
#panel-bi:has(#board-operations:checked) #preview-operations,
#panel-bi:has(#board-promotion:checked) #preview-promotion,
#panel-bi:has(#board-traffic:checked) #preview-traffic,
#panel-bi:has(#board-profit:checked) #preview-profit,
#panel-bi:has(#board-fulfillment:checked) #preview-fulfillment,
#panel-bi:has(#board-customers:checked) #preview-customers,
#panel-bi:has(#board-weekly:checked) #preview-weekly { display: block; }
.toolbox-capabilities { padding: 0; margin: 12px 0 0; list-style: none; color: var(--commerce-text); font-size: 14px; }
.toolbox-capabilities li + li { margin-top: 6px; }

@media (max-width: 760px) {
  .product-section-home .commerce-section { padding-inline: 16px; }
  .product-switcher { padding: 8px; }
  .product-switcher > label { padding-inline: 7px; font-size: 13px; }
  .product-shot-button { padding: 10px; }
}

@media (max-width: 760px) {
  .product-panel { grid-template-columns: minmax(0, 1fr); }
  .product-shot-button { border-top: 1px solid var(--commerce-line); }
}
