:root {
  color-scheme: light;
  --page: #ECF0F4;
  --ink: #012E4B;
  --muted: #5f6b7a;
  --panel: #ffffff;
  --line: #d7dde5;
  --soft-line: #eceff3;
  --primary: #069C65;
  --primary-dark: #04784e;
  --special: #E67E22;
  --topbar: #012E4B;
  --header: #eeeeee;
  --shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.item-code-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--special);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.item-code-badge-large {
  padding: 0.5rem 0.9rem;
  font-size: 1.2rem;
}

html, body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}

body { position: relative; }

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 14px 34px;
}

.surface-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-main { display: grid; gap: 24px; }

.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-bottom: 20px;
  background: var(--topbar);
  border-color: var(--topbar);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.brand-link, .brand-link:hover { box-shadow: none; transform: none; }
.site-logo { width: min(250px, 52vw); height: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.footer-link {
  color: var(--topbar);
  text-decoration: none;
  font-weight: 700;
}

.nav-link {
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 0.94rem;
}

.nav-link.active, .nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nav-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-user {
  color: #fff;
  font-weight: 800;
  padding: 10px 8px;
}

.special-link,
.special-button {
  background: var(--special);
  color: #fff;
}

.nav-toggle-input, .nav-toggle { display: none; }

.page-hero {
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.12);
}

.eyebrow {
  color: var(--topbar);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-title {
  max-width: 920px;
  font-weight: 800 !important;
  font-size: 3.5rem !important;
  letter-spacing: -0.04em !important;
  line-height: 1.03 !important;
  margin-bottom: 18px !important;
}

.page-intro {
  max-width: 850px;
  color: var(--muted);
  line-height: 1.8 !important;
  font-size: 1.08rem !important;
}

.body-copy { line-height: 1.75 !important; margin-bottom: 14px !important; color: var(--muted); }

.feature-section {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
}

.feature-reverse .feature-media { order: 2; }

.feature-media {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #e9eef7;
}

.feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  animation: featureFade 30s infinite;
}

.feature-image-1 { animation-delay: 0s; }
.feature-image-2 { animation-delay: 10s; }
.feature-image-3 { animation-delay: 20s; }

@keyframes featureFade {
  0% { opacity: 0; transform: scale(1.05); }
  5% { opacity: 1; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.02); }
  36% { opacity: 0; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.05); }
}

.content-grid {
  display: grid;
  gap: 24px;
}

.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.content-card {
  padding: clamp(22px, 4vw, 34px);
}

.feature-card-large { grid-column: 1 / -1; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.brand-showcase-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
}

.brand-showcase-logo {
  width: 150px;
  max-height: 110px;
  object-fit: contain;
  padding: 14px;
  border-radius: 8px;
  background: rgba(247, 250, 255, 0.9);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.16));
}

.brand-overview { margin-top: 0; }

.partners-panel { padding: clamp(22px, 4vw, 34px); overflow: hidden; }
.section-heading { max-width: 850px; margin-bottom: 22px; }

.partner-carousel {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partner-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: partnerMarquee 38s linear infinite;
}

.partner-logo-card {
  width: 180px;
  min-height: 120px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(247, 250, 255, 0.88);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(29, 36, 48, 0.08);
}

.partner-logo {
  max-width: 116px;
  max-height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
}

@keyframes partnerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link { color: #0056b3 !important; font-weight: 800 !important; }
.contact-note { text-align: center; }

.cta-row {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-button { min-width: 180px; }

.site-footer {
  margin-top: 32px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-logo { width: 180px; height: auto; margin-bottom: 12px; }
.footer-contact, .footer-nav { display: grid; gap: 8px; }
.footer-fine-print { grid-column: 1 / -1; opacity: 0.8; border-top: 1px solid rgba(38,49,70,0.12); padding-top: 16px; }

button, a, .mud-button-root { transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease !important; }
button:hover, a:hover, .mud-button-root:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 123, 255, .22); }
.footer-link:hover { color: #0056b3; }

.mud-button-root {
  border-radius: 5px !important;
  text-transform: none !important;
  font-weight: 700 !important;
}

.mud-button-filled-primary {
  background: var(--primary) !important;
  color: #fff !important;
}

.mud-button-filled-primary:hover {
  background: var(--primary-dark) !important;
}

.mud-button-filled-tertiary {
  background: var(--special) !important;
  color: #fff !important;
}

.mud-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mud-table thead .mud-table-cell {
  background: var(--header);
  color: var(--ink);
  font-weight: 800;
  border-bottom: 1px solid #ccc;
}

.mud-table .mud-table-cell {
  border-bottom: 1px solid var(--soft-line);
  padding: 10px;
}

.mud-input-control .mud-input-outlined-border {
  border-color: #c8d0da !important;
}

.mud-input-control .mud-input-root:focus-within .mud-input-outlined-border,
.mud-input-control .mud-input-root:hover .mud-input-outlined-border {
  border-color: var(--primary) !important;
}

@media (max-width: 980px) {
  .site-header-inner { align-items: flex-start; flex-wrap: wrap; }
  .site-nav { width: 100%; justify-content: center; }
  .feature-section, .brand-showcase-card { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
  .feature-media { min-height: 260px; }
  .brand-grid, .two-column, .contact-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .page-shell { padding: 10px 8px 24px; }
  .site-header { top: 8px; }
  .site-header-inner { align-items: center; }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 123, 255, 0.12);
    cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--primary-dark); border-radius: 2px; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .nav-link { text-align: center; }
  .page-hero, .content-card, .feature-section, .partners-panel, .site-footer { border-radius: 8px; }
  .page-title { font-size: 2.25rem !important; }
  .feature-media { min-height: 230px; }
  .brand-showcase-logo { width: 100%; max-width: 180px; justify-self: center; }
  .partner-logo-card { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.flagship-brand-section {
  display: flex;
  justify-content: center;
}

.flagship-brand-card {
  width: min(100%, 920px);
  grid-template-columns: 230px 1fr;
  padding: clamp(28px, 5vw, 48px);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.flagship-brand-card::before {
  content: "♛";
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  top: clamp(8px, 2vw, 18px);
  color: rgba(0, 123, 255, 0.12);
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 1;
}

.flagship-brand-logo {
  width: 230px;
  max-height: 160px;
  justify-self: center;
}

.flagship-brand-copy {
  position: relative;
  z-index: 1;
}

.home-intro-slideshow {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #101722;
  isolation: isolate;
}

.home-intro-slide-stage,
.home-intro-slide {
  position: absolute;
  inset: 0;
}

.home-intro-slide-stage {
  z-index: 0;
}

.home-intro-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  animation: homeIntroFade 30s ease-in-out infinite;
}

.home-intro-slide-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.28), rgba(16, 23, 34, 0.62));
}

.home-intro-slide-1 { animation-delay: 0s; }
.home-intro-slide-2 { animation-delay: 5s; }
.home-intro-slide-3 { animation-delay: 10s; }
.home-intro-slide-4 { animation-delay: 15s; }
.home-intro-slide-5 { animation-delay: 20s; }
.home-intro-slide-6 { animation-delay: 25s; }

.home-intro-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 28px;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  animation: homeIntroContentIn 900ms ease both;
}

.home-intro-logo {
  width: min(420px, 72vw);
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.2));
}

.home-intro-learn-more {
  color: var(--primary-dark);
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
}

.home-intro-slideshow-closing {
  pointer-events: none;
  animation: homeIntroExit 900ms ease forwards;
}

.home-intro-slideshow-closing .home-intro-slide:nth-child(odd) {
  animation: homeIntroFlyLeft 900ms cubic-bezier(.7, 0, .2, 1) forwards;
}

.home-intro-slideshow-closing .home-intro-slide:nth-child(even) {
  animation: homeIntroFlyRight 900ms cubic-bezier(.7, 0, .2, 1) forwards;
}

.home-intro-slideshow-closing .home-intro-content {
  animation: homeIntroContentOut 620ms ease forwards;
}

@keyframes homeIntroFade {
  0% { opacity: 0; transform: scale(1.08); }
  5% { opacity: 1; transform: scale(1); }
  16% { opacity: 1; transform: scale(1.03); }
  22% { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.08); }
}

@keyframes homeIntroContentIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes homeIntroContentOut {
  to { opacity: 0; transform: translateY(-24px) scale(0.94); }
}

@keyframes homeIntroExit {
  to { background: transparent; }
}

@keyframes homeIntroFlyLeft {
  to { opacity: 0; transform: translateX(-120vw) rotate(-8deg) scale(1.08); }
}

@keyframes homeIntroFlyRight {
  to { opacity: 0; transform: translateX(120vw) rotate(8deg) scale(1.08); }
}

@media (max-width: 980px) {
  .flagship-brand-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .home-intro-content { width: calc(100% - 48px); }
  .flagship-brand-logo { width: 100%; max-width: 230px; }
}

.store-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.store-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 5px;
  background: var(--special);
  color: #fff;
}

.store-brand-text {
  font-size: 1.18rem;
}

.store-workspace {
  border-radius: 8px;
}

.header-brand-logo {
  display: block;
  width: auto;
  height: 80px;
  max-width: min(300px, 50vw);
  object-fit: contain;
}

.home-storefront {
  display: grid;
  gap: clamp(30px, 5vw, 58px);
  padding-bottom: 20px;
}

.home-brand-hero {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 50px) 20px 0;
  text-align: center;
}

.home-main-logo {
  display: block;
  width: min(1800px, 100vw);
  max-height: 760px;
  object-fit: contain;
}

.home-brand-hero h1 {
  margin: 0;
  color: var(--topbar);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.home-wave-slogan span {
  display: inline-block;
  margin-right: .28em;
  transform-origin: center bottom;
  animation: homeSloganWave 7s ease-in-out infinite;
  animation-delay: calc(var(--wave-index) * 90ms);
}

.home-wave-slogan span:last-child { margin-right: 0; }

@keyframes homeSloganWave {
  0%, 72%, 100% { transform: translateY(0) rotate(0); }
  76% { transform: translateY(-5px) rotate(-1.5deg); }
  80% { transform: translateY(1px) rotate(1deg); }
  84% { transform: translateY(0) rotate(0); }
}

.home-sale-section {
  padding: 0 0 14px;
  overflow: hidden;
}

.home-section-heading-row {
  display: block;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.home-section-heading-row h2,
.home-newest-heading h2 {
  margin: 0;
  color: var(--topbar);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  text-align: center;
}

.home-carousel-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--topbar);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.home-carousel-arrow:disabled { opacity: .25; }

.home-sale-carousel {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.home-sale-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding-left: 10px;
  animation: homeSaleMarquee 42s linear infinite;
  will-change: transform;
}

.home-sale-carousel:hover .home-sale-track { animation-play-state: paused; }

@keyframes homeSaleMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-sale-card {
  position: relative;
  width: 220px;
  min-width: 220px;
  display: grid;
  grid-template-rows: 135px auto auto auto;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.home-sale-card img,
.home-newest-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.home-sale-ribbon {
  position: absolute;
  top: 18px;
  left: -42px;
  z-index: 2;
  width: 150px;
  padding: 6px 0;
  transform: rotate(-43deg);
  background: #c30000;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.home-sale-prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.home-sale-prices del { color: #a8a8a8; font-weight: 800; }
.home-sale-prices strong { color: var(--special); font-size: 1.45rem; }
.home-sale-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-sale-card small { color: var(--muted); }

.home-product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  background: #f7f8fa;
}

.home-welcome-section {
  display: grid;
  place-items: center;
  gap: 24px;
  text-align: center;
}

.home-welcome-copy {
  width: min(860px, 100%);
  display: grid;
  gap: 14px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.8;
}

.home-welcome-copy p { margin: 0; }
.home-view-shop { min-width: 150px; }

.home-newest-section { display: grid; gap: 24px; }
.home-newest-heading { width: min(800px, 100%); margin: 0 auto; text-align: center; }
.home-newest-heading p { margin: 12px 0 0; line-height: 1.65; }

.home-newest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-newest-card {
  position: relative;
  min-width: 0;
  min-height: 320px;
  display: grid;
  grid-template-rows: 190px auto auto auto;
  align-items: center;
  gap: 6px;
  padding: 16px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.home-new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 3px;
  background: #f04438;
  color: #fff;
  font-size: .67rem;
  font-weight: 900;
}

.home-newest-card > strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-newest-card > span:not(.home-new-badge):not(.home-product-placeholder) { font-size: .88rem; }

.home-service-note {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
}

.home-service-note a { color: var(--primary-dark); font-weight: 800; }

@media (max-width: 800px) {
  .header-brand-logo { height: 56px; max-width: 210px; }
  .home-sale-card { width: 190px; min-width: 190px; grid-template-rows: 120px auto auto auto; }
  .home-newest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .home-newest-grid { grid-template-columns: 1fr; }
  .home-newest-card { min-height: 300px; }
}

.diagnostics-card,
.upload-zone {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfe;
  height: 100%;
}

.diagnostics-detail-panel,
.diagnostics-output-panel {
  min-height: 360px;
}

.diagnostics-check-group {
  display: grid;
  gap: 8px;
}

.diagnostics-table .mud-table-cell {
  vertical-align: top;
}

.backend-output-window {
  height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #162230;
  border-radius: 8px;
  background: #101722;
  color: #d8e2ee;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.backend-output-line {
  display: grid;
  grid-template-columns: 72px 92px minmax(180px, 1fr);
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(216, 226, 238, 0.08);
}

.backend-output-time {
  color: #8fb5d6;
}

.backend-output-level {
  font-weight: 800;
}

.backend-output-level-information {
  color: #8ee4b8;
}

.backend-output-level-warning {
  color: #ffd166;
}

.backend-output-level-error,
.backend-output-level-critical {
  color: #ff8a8a;
}

.backend-output-message {
  overflow-wrap: anywhere;
}

.backend-output-category,
.backend-output-exception {
  grid-column: 3 / -1;
  color: #94a3b8;
  overflow-wrap: anywhere;
}

.backend-output-exception {
  color: #ffb4b4;
}

.backend-output-muted {
  display: block;
  color: #94a3b8;
  border-bottom: 0;
}

.upload-zone input[type="file"] {
  width: 100%;
  max-width: 100%;
}

.inventory-panel {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfe;
  height: 100%;
}

.inventory-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.compact-list {
  max-height: 240px;
}

.inventory-list-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.inventory-list-row strong,
.inventory-list-row small,
.inventory-list-metrics {
  display: block;
}

.inventory-list-row small,
.inventory-list-metrics small {
  color: var(--muted);
}

.inventory-list-row-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(6, 156, 101, 0.14);
}

.inventory-list-metrics {
  min-width: 80px;
  text-align: right;
}

.store-toolbar {
  gap: 16px;
  flex-wrap: wrap;
}

.store-toolbar .mud-input-control {
  min-width: min(100%, 360px);
}

.product-card {
  height: 100%;
  display: grid;
  gap: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.product-image,
.product-image-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 8px;
}

.product-image {
  object-fit: contain;
  background: #fff;
}

.product-image-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #ccc;
  color: var(--muted);
  background: #fafafa;
  font-weight: 800;
}

.product-card .mud-typography-h6 {
  color: var(--topbar);
  font-weight: 800;
}

.sale-ribbon {
  position: absolute;
  top: 17px;
  right: -38px;
  z-index: 2;
  width: 140px;
  padding: 6px 0;
  transform: rotate(45deg);
  background: #c81e1e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(30, 41, 59, 0.22);
}

.catalog-unit-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
  color: var(--primary);
}

.catalog-unit-price strong { font-size: 1.35rem; line-height: 1; }
.catalog-unit-price small { color: var(--muted); }
.catalog-old-price {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.catalog-unit-price-large strong { font-size: clamp(1.8rem, 4vw, 2.5rem); }

.product-discount-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-pager {
  align-items: center;
}

.catalog-page-jump .mud-input-control {
  min-width: 92px;
  width: 110px;
}

.login-panel {
  width: min(100%, 520px);
  margin: 0 auto;
}

.product-image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-image-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 660px;
}

.product-image-manager-cell {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 118px;
  overflow: hidden;
  border: 2px solid var(--soft-line);
  border-radius: 10px;
  background: #fff;
  cursor: grab;
  transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.product-image-manager-cell:hover { border-color: var(--primary); }
.product-image-manager-cell[draggable="true"] { cursor: grab; user-select: none; }
.product-image-manager-cell[draggable="true"]:active { cursor: grabbing; }
.product-image-manager-cell.is-dragging { opacity: .45; transform: scale(.97); }
.product-image-drag-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  color: white;
  background: rgba(18, 30, 45, .78);
  font-weight: 800;
  letter-spacing: -2px;
  pointer-events: none;
}
.product-image-move-buttons {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  gap: 5px;
}
.product-image-move-buttons button {
  width: 32px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: rgba(18, 30, 45, .86);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}
.product-image-move-buttons button:disabled { opacity: .35; cursor: default; }

.bulk-quantity-select {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: var(--mud-palette-text-secondary);
  font-size: .75rem;
}
.bulk-quantity-select select {
  min-height: 40px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--mud-palette-lines-inputs);
  border-radius: 4px;
  background: var(--mud-palette-surface);
  color: var(--mud-palette-text-primary);
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
}
.product-image-manager-cell img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 118px !important;
  object-fit: contain;
}

.product-image-manager-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}

.product-image-order,
.product-image-primary {
  position: absolute;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(1, 46, 75, .88);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.product-image-order { top: 8px; }
.product-image-primary { bottom: 8px; background: rgba(6, 156, 101, .92); }

.product-image-delete {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(184, 28, 28, .94);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.confirm-dialog-backdrop,
.product-viewer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 20, 32, .76);
  backdrop-filter: blur(5px);
}

.confirm-dialog {
  width: min(92vw, 420px);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.confirm-dialog img { width: 100%; height: 180px; object-fit: contain; border-radius: 8px; background: #f5f7fa; }

.inventory-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: stretch;
  padding: clamp(16px, 3vw, 34px);
  background: rgba(8, 20, 32, .76);
  backdrop-filter: blur(5px);
}

.inventory-modal {
  width: min(100%, 1080px);
  max-height: calc(100vh - 68px);
  margin: auto;
  padding: clamp(20px, 3vw, 34px);
  overflow: auto;
}

.floating-cart-shell {
  position: fixed;
  top: 92px;
  left: 18px;
  z-index: 1150;
}

.floating-cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(1, 46, 75, .24);
  cursor: pointer;
}

.floating-cart-badge {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--special);
  color: #fff;
  font-size: .78rem;
}

.floating-cart-panel {
  width: min(390px, calc(100vw - 36px));
  max-height: calc(100vh - 160px);
  margin-top: 10px;
  padding: 18px;
  overflow: auto;
  box-shadow: 0 22px 58px rgba(8, 20, 32, .28);
}

.floating-cart-heading,
.floating-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.floating-cart-lines { display: grid; gap: 10px; margin: 14px 0; }
.floating-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 95px auto; gap: 8px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--soft-line); }
.floating-cart-line strong, .floating-cart-line small { display: block; }
.floating-cart-line small { color: var(--muted); }
.floating-cart-total { padding: 12px 0 16px; }

.product-viewer-backdrop { z-index: 1500; padding: 16px; overflow: hidden; }

.product-viewer {
  position: relative;
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(54px, 6vw, 72px) clamp(52px, 7vw, 82px) 34px;
  border-radius: 16px;
  background: #f6f8fb;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

.product-viewer-content {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.product-viewer-gallery { display: grid; min-width: 0; max-width: 100%; gap: 16px; place-items: center; overflow: hidden; }

.product-photo-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.product-photo-navigation button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 750;
  cursor: pointer;
}
.product-photo-navigation button:last-child { justify-self: end; }
.product-photo-navigation button:disabled { opacity: .45; cursor: default; }
.product-photo-navigation span { color: var(--muted); font-size: .82rem; font-weight: 700; }

.product-viewer-main-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(280px, 48vh, 520px);
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(1, 46, 75, .12);
}

.product-viewer-thumbnails {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.product-viewer-thumbnail {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.product-viewer-thumbnail.is-selected { border-color: var(--primary); }
.product-viewer-thumbnail img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 92px !important;
  object-fit: contain;
}
.product-viewer-details { display: grid; gap: 16px; }

.product-viewer-close,
.product-viewer-arrow {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(1, 46, 75, .92);
  color: #fff;
  cursor: pointer;
}

.product-viewer-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; font-size: 1.6rem; }
.product-viewer-arrow { position: absolute; top: 50%; width: 44px; height: 44px; font-size: 2.2rem; transform: translateY(-50%); }
.product-viewer-arrow:hover { transform: translateY(-50%) scale(1.04); }
.product-viewer-arrow:disabled { opacity: .25; cursor: default; }
.product-viewer-arrow-left { left: 8px; }
.product-viewer-arrow-right { right: 8px; }

.catalog-active-filters { flex-wrap: wrap; }

.catalog-filter-toolbar {
  position: relative;
  gap: 14px;
}

.catalog-filter-menu { position: relative; }

.catalog-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(1, 46, 75, .22);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f5f9fb);
  color: var(--primary);
  font: 700 .92rem/1 inherit;
  box-shadow: 0 4px 14px rgba(1, 46, 75, .08);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.catalog-filter-trigger:hover,
.catalog-filter-trigger.is-open {
  border-color: var(--primary);
  box-shadow: 0 7px 20px rgba(1, 46, 75, .14);
  transform: translateY(-1px);
}

.catalog-filter-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
}

.catalog-filter-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(1, 46, 75, .15);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(1, 46, 75, .2);
}

.catalog-filter-panel-header,
.catalog-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.catalog-filter-panel-header {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #086b83);
}

.catalog-filter-panel-header strong,
.catalog-filter-panel-header small { display: block; }
.catalog-filter-panel-header small { margin-top: 3px; opacity: .78; }

.catalog-filter-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.catalog-filter-section + .catalog-filter-section { border-top: 1px solid var(--soft-line); }

.catalog-filter-section-toggle,
.catalog-filter-option {
  display: flex;
  width: 100%;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.catalog-filter-section-toggle {
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  font-weight: 750;
}

.catalog-filter-section-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.catalog-filter-section-meta { color: var(--muted); font-size: .78rem; font-weight: 600; }
.catalog-filter-options { max-height: 245px; padding: 0 10px 12px; overflow-y: auto; }

.catalog-filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 8px 10px;
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.catalog-filter-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 156, 101, .12);
}

.catalog-filter-search input {
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 600 .88rem/1.3 inherit;
}

.catalog-filter-search button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f6;
  color: var(--ink);
  font: 700 1rem/1 inherit;
  cursor: pointer;
}

.catalog-filter-empty {
  padding: 18px 10px 12px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.catalog-filter-option {
  gap: 10px;
  justify-content: flex-start;
  padding: 9px 10px;
  border-radius: 9px;
  text-align: left;
}

.catalog-filter-option > span:last-child {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.25;
}

.catalog-filter-option:hover { background: #f2f7fa; }
.catalog-filter-option.is-selected { background: rgba(0, 112, 132, .1); color: var(--primary); font-weight: 700; }

.catalog-filter-check {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(1, 46, 75, .28);
  border-radius: 6px;
  background: #fff;
  color: #fff;
  font-size: .78rem;
}

.catalog-filter-option.is-selected .catalog-filter-check {
  border-color: var(--primary);
  background: var(--primary);
}

.bulk-tier-editor {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) repeat(2, minmax(190px, 1fr));
  gap: 16px;
  align-items: center;
  min-height: 58px;
}

@media (max-width: 700px) {
  .bulk-tier-editor { grid-template-columns: 1fr; gap: 10px; }
  .bulk-tier-editor > div:empty { display: none; }
}

.catalog-filter-actions {
  border-top: 1px solid var(--soft-line);
  background: #f8fafb;
}

.operation-region { position: relative; }

.operation-busy-overlay {
  position: absolute;
  z-index: 35;
  inset: 0;
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  border-radius: inherit;
  background: rgba(247, 250, 252, .82);
  backdrop-filter: blur(3px);
}

.operation-busy-card {
  display: grid;
  width: min(360px, 100%);
  justify-items: center;
  gap: 9px;
  padding: 26px;
  border: 1px solid rgba(1, 46, 75, .13);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(1, 46, 75, .16);
  color: var(--ink);
  text-align: center;
}

.operation-busy-card strong { font-size: 1rem; }
.operation-busy-card > span:last-child { color: var(--muted); font-size: .86rem; line-height: 1.5; }

.operation-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(6, 156, 101, .18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: operation-spin .75s linear infinite;
}

.operation-spinner-small { width: 17px; height: 17px; border-width: 2px; }
.po-json-upload { display: inline-flex; align-items: center; gap: 8px; }
.po-json-upload.is-disabled { opacity: .55; pointer-events: none; }

@keyframes operation-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .operation-spinner { animation-duration: 1.8s; }
}

.item-category-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: #fff;
}

.item-category-table > span,
.item-category-table > button {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
}

.item-category-table > :nth-last-child(-n + 2) { border-bottom: 0; }
.category-remove-button { color: #c62828; font: 700 1.25rem/1 inherit; cursor: pointer; }

.category-items-dropdown { min-width: 240px; }
.category-items-dropdown summary { color: var(--primary); font-weight: 700; cursor: pointer; }
.category-items-dropdown p { margin: 10px 0 0; color: var(--muted); }
.category-items-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  max-height: 260px;
  margin-top: 10px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
}
.category-items-list span,
.category-items-list small { display: block; }
.category-items-list small { color: var(--muted); }

.product-viewer-page-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 800px) {
  .product-image-manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-viewer { padding: 58px 48px 26px; }
  .product-viewer-content { grid-template-columns: 1fr; align-items: start; }
  .product-viewer-main-image { height: min(42vh, 400px); }
  .product-viewer-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floating-cart-shell { top: 76px; left: 10px; }
}

/* Fluent-inspired business intelligence workspace */
.analytics-shell {
  --analytics-blue: #0f6cbd;
  --analytics-blue-dark: #0b4f8a;
  --analytics-purple: #7160e8;
  --analytics-orange: #d83b01;
  --analytics-green: #107c10;
  --analytics-canvas: #f5f6f8;
  --analytics-border: #e1e4e8;
  display: grid;
  gap: 16px;
  padding: 0 0 24px;
  color: #242424;
  font-family: "Segoe UI", "Manrope", sans-serif;
}

.analytics-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 25px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 5%, rgba(74, 146, 209, .28), transparent 28%),
    linear-gradient(118deg, #0b2942 0%, #0f4c72 56%, #106b78 100%);
  box-shadow: 0 12px 32px rgba(11, 41, 66, .18);
  color: #fff;
}

.analytics-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #a7d8ff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.analytics-header h1,
.analytics-section-toolbar h2,
.analytics-card-heading h2 { margin: 0; }
.analytics-header h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); font-weight: 650; letter-spacing: -.035em; }
.analytics-header p { max-width: 720px; margin: 9px 0 0; color: rgba(255,255,255,.75); line-height: 1.55; }

.analytics-header-status {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 8px;
  min-width: 180px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  font-size: .82rem;
  font-weight: 650;
}

.analytics-header-status small { grid-column: 2; color: rgba(255,255,255,.62); font-weight: 400; }
.analytics-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #54d17a; box-shadow: 0 0 0 4px rgba(84,209,122,.15); }

.analytics-command-bar {
  display: flex !important;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px !important;
  border: 1px solid var(--analytics-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
}

.analytics-date-field,
.analytics-query-builder label,
.analytics-inline-controls label { display: grid; gap: 5px; }
.analytics-date-field label,
.analytics-query-builder label > span,
.analytics-inline-controls label > span { color: #616161; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.analytics-date-field input,
.analytics-query-builder input,
.analytics-query-builder select,
.analytics-inline-controls input,
.analytics-inline-controls select {
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: #242424;
  font: 500 .84rem/1.2 "Segoe UI", sans-serif;
}

.analytics-date-field input:focus,
.analytics-query-builder input:focus,
.analytics-query-builder select:focus,
.analytics-inline-controls input:focus,
.analytics-inline-controls select:focus { border-color: var(--analytics-blue); box-shadow: inset 0 -2px var(--analytics-blue); }

.analytics-primary-button,
.analytics-secondary-button,
.analytics-link-button,
.analytics-quick-ranges button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 650 .82rem/1 "Segoe UI", sans-serif;
  cursor: pointer;
}

.analytics-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--analytics-blue); color: #fff; }
.analytics-primary-button:hover { background: var(--analytics-blue-dark); }
.analytics-primary-button:disabled { opacity: .6; cursor: wait; }
.analytics-secondary-button { border-color: #b9b9b9; background: #fff; color: #242424; }
.analytics-link-button { min-height: auto; padding: 4px; background: transparent; color: var(--analytics-blue); }
.analytics-button-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: operation-spin .7s linear infinite; }
.analytics-quick-ranges { display: flex; gap: 3px; margin-left: auto; }
.analytics-quick-ranges button { min-width: 44px; border-color: #dedede; background: #f8f8f8; color: #424242; }
.analytics-quick-ranges button:hover { border-color: var(--analytics-blue); color: var(--analytics-blue); }

.analytics-tabs {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  overflow-x: auto;
  border-bottom: 1px solid #d6d6d6;
  background: #fff;
}

.analytics-tabs button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #616161;
  font: 600 .86rem/1 "Segoe UI", sans-serif;
  cursor: pointer;
}

.analytics-tabs button::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.analytics-tabs button:hover { background: #f5f5f5; color: #242424; }
.analytics-tabs button.is-active { color: var(--analytics-blue); }
.analytics-tabs button.is-active::after { background: var(--analytics-blue); }
.analytics-tab-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 5px; background: #edf4fa; color: var(--analytics-blue); font-size: 1rem; }

.analytics-period-note { display: flex; justify-content: space-between; gap: 12px; color: #707070; font-size: .76rem; }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.analytics-kpi-grid-compact { margin-bottom: 2px; }
.analytics-kpi-card {
  position: relative;
  display: grid !important;
  gap: 5px;
  min-height: 126px;
  padding: 19px 20px !important;
  overflow: hidden;
  border: 1px solid var(--analytics-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.045) !important;
}

.analytics-kpi-accent { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--analytics-blue); }
.analytics-kpi-accent.tone-purple { background: var(--analytics-purple); }
.analytics-kpi-accent.tone-orange { background: var(--analytics-orange); }
.analytics-kpi-accent.tone-green { background: var(--analytics-green); }
.analytics-kpi-label { color: #616161; font-size: .76rem; font-weight: 650; }
.analytics-kpi-card strong { color: #242424; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 650; letter-spacing: -.035em; }
.analytics-kpi-card small { color: #7a7a7a; font-size: .73rem; }

.analytics-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.analytics-span-4 { grid-column: span 4; }
.analytics-span-8 { grid-column: span 8; }
.analytics-span-12 { grid-column: span 12; }
.analytics-card,
.analytics-query-builder,
.analytics-state-card {
  display: block !important;
  padding: 20px !important;
  border: 1px solid var(--analytics-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.045) !important;
}

.analytics-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.analytics-card-heading > div > span { display: block; margin-bottom: 4px; color: var(--analytics-blue); font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.analytics-card-heading h2 { color: #242424; font-size: 1rem; font-weight: 650; }
.analytics-legend { display: inline-flex; align-items: center; gap: 6px; color: #696969; font-size: .72rem; }
.analytics-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--analytics-blue); }

.analytics-column-chart {
  display: grid;
  grid-auto-columns: minmax(18px, 1fr);
  grid-auto-flow: column;
  align-items: end;
  gap: 5px;
  height: 250px;
  padding: 18px 8px 0;
  overflow-x: auto;
  border-bottom: 1px solid #d9d9d9;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 61px, #f0f0f0 62px);
}

.analytics-column { display: grid; grid-template-rows: 18px 1fr 23px; align-items: end; justify-items: center; height: 100%; min-width: 18px; }
.analytics-column > span { color: #696969; font-size: .62rem; }
.analytics-column > i { width: min(22px, 72%); min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #45a4e8, var(--analytics-blue)); box-shadow: 0 0 0 1px rgba(15,108,189,.08); }
.analytics-column > small { white-space: nowrap; color: #777; font-size: .58rem; transform: rotate(-35deg); transform-origin: center; }

.analytics-funnel { display: grid; gap: 20px; padding-top: 4px; }
.analytics-funnel-step { display: grid; gap: 7px; }
.analytics-funnel-step > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8rem; }
.analytics-funnel-step > div:first-child strong { font-size: .95rem; }
.analytics-funnel-track { height: 10px; overflow: hidden; border-radius: 2px; background: #ececec; }
.analytics-funnel-track i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--analytics-blue), #4aa0d8); }
.analytics-funnel-step:nth-child(2) .analytics-funnel-track i { background: linear-gradient(90deg, #d83b01, #f58a63); }
.analytics-funnel-step:nth-child(3) .analytics-funnel-track i { background: linear-gradient(90deg, #107c10, #55ad55); }
.analytics-funnel-step small { color: #777; font-size: .7rem; }

.analytics-table-wrap { width: 100%; overflow: auto; }
.analytics-table-tall { max-height: 560px; }
.analytics-table { width: 100%; border-collapse: collapse; color: #323130; font-size: .78rem; }
.analytics-table th { position: sticky; z-index: 1; top: 0; padding: 10px 12px; border-bottom: 1px solid #c8c8c8; background: #fafafa; color: #525252; font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-align: right; white-space: nowrap; }
.analytics-table th:first-child,
.analytics-table th:nth-child(2) { text-align: left; }
.analytics-table td { padding: 11px 12px; border-bottom: 1px solid #ededed; text-align: right; vertical-align: middle; white-space: nowrap; }
.analytics-table td:first-child,
.analytics-table td:nth-child(2) { text-align: left; }
.analytics-table tr:hover td { background: #f5f9fc; }
.analytics-table td strong { font-weight: 650; }
.analytics-table td small { display: block; max-width: 320px; margin-top: 3px; overflow: hidden; color: #777; font-size: .68rem; text-overflow: ellipsis; }
.analytics-result-count { color: #777; font-size: .72rem; white-space: nowrap; }

.analytics-section-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 8px 2px 2px; }
.analytics-section-toolbar h2 { color: #242424; font-size: 1.25rem; font-weight: 650; }
.analytics-section-toolbar p { margin: 5px 0 0; color: #6f6f6f; font-size: .8rem; }
.analytics-inline-controls { display: flex; align-items: flex-end; gap: 10px; }
.analytics-inline-controls input { width: 225px; }
.analytics-inline-controls select { min-width: 135px; }

.analytics-ranking-list { display: grid; gap: 15px; }
.analytics-ranking-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.analytics-ranking-row > div { min-width: 0; }
.analytics-ranking-row strong,
.analytics-ranking-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-ranking-row strong { font-size: .78rem; }
.analytics-ranking-row small { margin-top: 2px; color: #777; font-size: .66rem; }
.analytics-ranking-row > span { font-size: .76rem; font-weight: 700; }
.analytics-ranking-row > i { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 2px; background: #ededed; }
.analytics-ranking-row > i b { display: block; height: 100%; min-width: 2px; background: var(--analytics-blue); }

.analytics-cell-bar { display: grid; grid-template-columns: minmax(70px, 1fr) auto; align-items: center; gap: 8px; }
.analytics-cell-bar i { width: 90px; height: 5px; overflow: hidden; border-radius: 2px; background: #ededed; }
.analytics-cell-bar b { display: block; height: 100%; min-width: 2px; background: var(--analytics-blue); }

.analytics-query-builder { display: grid !important; grid-template-columns: 1.1fr 1.1fr 1.5fr .8fr .7fr auto; align-items: end; gap: 12px; }
.analytics-query-builder .analytics-primary-button { min-width: 100px; }
.analytics-query-results { margin-top: 0; }

.analytics-state-card { display: grid !important; min-height: 300px; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.analytics-state-card strong { font-size: 1rem; }
.analytics-state-card span { color: #6f6f6f; font-size: .82rem; }
.analytics-error-card { border-left: 4px solid #c42b1c !important; }
.analytics-empty { display: grid; min-height: 150px; place-items: center; color: #777; font-size: .82rem; text-align: center; }

@media (max-width: 980px) {
  .analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-span-4,
  .analytics-span-8 { grid-column: span 12; }
  .analytics-query-builder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .analytics-header { align-items: flex-start; padding: 24px 20px; flex-direction: column; }
  .analytics-header-status { width: 100%; box-sizing: border-box; }
  .analytics-command-bar { align-items: stretch; flex-wrap: wrap; }
  .analytics-date-field { flex: 1 1 135px; }
  .analytics-quick-ranges { width: 100%; margin-left: 0; }
  .analytics-quick-ranges button { flex: 1; }
  .analytics-kpi-grid { grid-template-columns: 1fr; }
  .analytics-section-toolbar,
  .analytics-inline-controls { align-items: stretch; flex-direction: column; }
  .analytics-inline-controls,
  .analytics-inline-controls label,
  .analytics-inline-controls input,
  .analytics-inline-controls select { width: 100%; }
  .analytics-query-builder { grid-template-columns: 1fr 1fr; }
  .analytics-query-builder label:nth-child(3) { grid-column: 1 / -1; }
  .analytics-period-note { flex-direction: column; gap: 3px; }
}

@media (max-width: 440px) {
  .analytics-query-builder { grid-template-columns: 1fr; }
  .analytics-query-builder label:nth-child(3) { grid-column: auto; }
  .analytics-primary-button { width: 100%; }
}

/* 2026 Fluent wholesale design system */
:root {
  --fluent-blue: #0f6cbd;
  --fluent-blue-dark: #0b4f8a;
  --commerce-green: #087a53;
  --commerce-green-dark: #055f41;
  --commerce-gold: #d47a14;
  --fluent-canvas: #f4f6f8;
  --fluent-card: #ffffff;
  --fluent-stroke: #dfe3e8;
  --fluent-shadow: 0 2px 8px rgba(15, 23, 42, .06), 0 12px 30px rgba(15, 23, 42, .045);
}

html, body { font-family: "Segoe UI", "Manrope", sans-serif; }
body {
  background:
    radial-gradient(circle at 8% 2%, rgba(15, 108, 189, .055), transparent 25%),
    radial-gradient(circle at 94% 12%, rgba(8, 122, 83, .05), transparent 27%),
    var(--fluent-canvas);
}

.page-shell { max-width: 1460px; padding: 14px clamp(10px, 2vw, 24px) 38px; }
.site-main { gap: 20px; }
.surface-panel,
.mud-paper:not(.mud-popover):not(.mud-picker) {
  border-color: var(--fluent-stroke);
  border-radius: 12px;
  box-shadow: var(--fluent-shadow);
}

.store-workspace {
  position: relative;
  overflow: hidden;
  border-radius: 12px !important;
}

.store-workspace::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--commerce-green), var(--fluent-blue), var(--commerce-gold));
}

.store-workspace h1,
.store-workspace h2,
.store-workspace h3,
.store-workspace h4,
.login-panel h1,
.login-panel h2 { letter-spacing: -.025em; }

.mud-button-root { min-height: 38px; border-radius: 6px !important; font-weight: 650 !important; letter-spacing: 0 !important; }
.mud-button-filled-primary { background: var(--commerce-green) !important; box-shadow: 0 3px 9px rgba(8, 122, 83, .2) !important; }
.mud-button-filled-primary:hover { background: var(--commerce-green-dark) !important; }
.mud-button-outlined { background: rgba(255,255,255,.72); }
.mud-tabs-tabbar { border-bottom: 1px solid var(--fluent-stroke); background: #fbfcfd; }
.mud-tab { min-height: 48px !important; font-weight: 650 !important; text-transform: none !important; }
.mud-tabs-tabbar .mud-tab.mud-tab-active { color: var(--commerce-green) !important; }
.mud-tabs-tabbar .mud-tab-slider { background: var(--commerce-green) !important; height: 3px !important; }
.mud-table { border-color: var(--fluent-stroke); border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.025); }
.mud-table thead .mud-table-cell { background: #f6f8fa; color: #344054; font-size: .76rem; letter-spacing: .012em; }
.mud-table tbody tr:hover td { background: #f2f8f6 !important; }
.mud-alert { border-radius: 8px !important; }
.mud-input-outlined { background: rgba(255,255,255,.82); border-radius: 6px !important; }
.inventory-panel,
.diagnostics-card,
.upload-zone { border-color: var(--fluent-stroke) !important; background: linear-gradient(180deg, #fff, #fcfdfe) !important; }
.product-card { border: 1px solid var(--fluent-stroke); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important; }
.product-card:hover { border-color: rgba(8,122,83,.35); box-shadow: 0 12px 28px rgba(15,23,42,.11) !important; transform: translateY(-3px); }

/* Fixed-size storefront header */
.site-header {
  top: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(1, 37, 60, .97);
  box-shadow: 0 8px 28px rgba(1, 28, 46, .18);
  backdrop-filter: blur(18px);
  transition: top .22s ease, border-radius .22s ease, box-shadow .22s ease;
}

.site-header-inner { position: relative; min-height: 64px; padding: 10px 16px; transition: min-height .24s ease, padding .24s ease, gap .24s ease; }
.header-brand-cluster { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-brand-logo { height: 58px; max-width: min(220px, 43vw); transition: height .24s ease, max-width .24s ease; }
.header-market-label { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.62); font-size: .66rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: opacity .18s ease, width .2s ease; }
.site-nav { gap: 3px; }
.nav-link { padding: 9px 11px; border-radius: 6px; color: rgba(255,255,255,.82); font-size: .84rem; font-weight: 600; transition: padding .22s ease, background .16s ease, color .16s ease !important; }
.nav-link.active { background: rgba(255,255,255,.13); color: #fff; box-shadow: inset 0 -2px #55d89c; }
.nav-link:hover { background: rgba(255,255,255,.1); box-shadow: none; color: #fff; transform: none; }
.special-link,
.special-button { background: var(--commerce-green); color: #fff; }
.nav-user { max-width: 120px; overflow: hidden; padding: 8px 6px; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }

/* Modern wholesale home */
.home-storefront-modern { gap: clamp(18px, 3vw, 34px); }
.home-commerce-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  min-height: 570px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(120deg, #f8fbfd 0%, #fff 54%, #eef8f4 100%);
}
.home-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(34px, 6vw, 78px); }
.home-main-logo { width: min(330px, 72vw); max-height: 118px; margin-bottom: 27px; object-position: left center; }
.home-kicker { color: var(--commerce-green); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.home-hero-copy h1 { max-width: 720px; margin: 12px 0 16px; color: #0b2942; font-size: clamp(2.25rem, 5vw, 4.35rem); font-weight: 680; letter-spacing: -.055em; line-height: .99; }
.home-hero-copy > p { max-width: 650px; margin: 0; color: #536273; font-size: clamp(.98rem, 1.6vw, 1.12rem); line-height: 1.65; }
.home-delivery-promise { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 16px; border: 1px solid #b9dfcc; border-radius: 8px; background: #f0faf5; }
.home-delivery-promise > span { display: grid; min-width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--commerce-green); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .04em; }
.home-delivery-promise div { display: grid; gap: 2px; }
.home-delivery-promise strong { color: #075b3f; font-size: .92rem; }
.home-delivery-promise small { color: #536b61; font-size: .76rem; }
.home-hero-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.home-trust-row { display: flex; gap: 18px; margin-top: 30px; flex-wrap: wrap; color: #415266; font-size: .8rem; font-weight: 600; }
.home-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.home-trust-row i { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #dff5e9; color: var(--commerce-green); font-style: normal; font-size: .7rem; }
.home-hero-visual { position: relative; display: grid; min-height: 520px; place-items: center; overflow: hidden; padding: 48px; background: linear-gradient(145deg, #083452, #075846 72%, #087a53); }
.home-hero-visual::before,
.home-hero-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.home-hero-visual::before { width: 460px; height: 460px; right: -180px; top: -170px; }
.home-hero-visual::after { width: 320px; height: 320px; left: -170px; bottom: -150px; }
.home-hero-product { position: relative; z-index: 1; display: grid; width: min(390px, 100%); grid-template-rows: minmax(250px, 1fr) auto; gap: 18px; color: #fff; text-decoration: none; }
.home-hero-product:hover { box-shadow: none; transform: translateY(-4px); }
.home-featured-image-slideshow {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 310px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 52px rgba(0,0,0,.22);
}
.home-featured-image-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 22px;
  box-sizing: border-box;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.home-featured-image-slideshow img.is-active { opacity: 1; }
.home-featured-image-count { position: absolute; z-index: 2; right: 12px; bottom: 11px; padding: 4px 8px; border-radius: 999px; background: rgba(7,36,56,.72); color: #fff; font-size: .65rem; font-weight: 700; }
.home-hero-product > img,
.home-hero-product > .home-product-placeholder { box-sizing: border-box; width: 100%; height: 310px; padding: 22px; border-radius: 18px; background: rgba(255,255,255,.97); object-fit: contain; box-shadow: 0 24px 52px rgba(0,0,0,.22); }
.home-hero-deal { position: absolute; z-index: 2; top: -12px; right: -14px; padding: 9px 12px; border-radius: 7px; background: #f59d34; color: #17212b; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.home-hero-product > div { display: grid; gap: 4px; }
.home-hero-product > div > span { color: #9fe5c5; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-hero-product > div > strong { font-size: 1.18rem; line-height: 1.25; }
.home-hero-product > div > b { color: #fff; font-size: 1.65rem; }
.home-hero-product > div small { color: rgba(255,255,255,.65); font-size: .7rem; font-weight: 500; }
.home-hero-promise { position: relative; z-index: 1; display: grid; gap: 14px; color: #fff; text-align: center; }
.home-hero-promise span { font-size: 7rem; font-weight: 800; letter-spacing: -.09em; opacity: .22; }
.home-hero-promise strong { font-size: 1.7rem; }
.home-product-skeleton { width: min(390px, 100%); height: 390px; border-radius: 18px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.2), rgba(255,255,255,.08)); background-size: 200% 100%; animation: homeSkeleton 1.5s infinite; }
@keyframes homeSkeleton { to { background-position: -200% 0; } }

.home-value-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--fluent-stroke); border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgba(15,23,42,.035); }
.home-value-strip > div { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; padding: 21px 24px; }
.home-value-strip > div + div { border-left: 1px solid var(--fluent-stroke); }
.home-value-strip span { grid-row: 1 / 3; color: #aab4bf; font-size: 1.5rem; font-weight: 300; }
.home-value-strip strong { color: #172b3d; font-size: .9rem; }
.home-value-strip small { color: #687684; line-height: 1.4; }

.home-sale-showcase { overflow: hidden; }
.home-sale-showcase .home-section-heading-row { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; background: #fbfcfd; }
.home-section-heading-row h2,
.home-newest-heading h2 { margin: 5px 0 0; color: #172b3d; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 650; letter-spacing: -.035em; text-align: left; }
.home-slideshow-controls { display: flex; align-items: center; gap: 10px; color: #687684; font-size: .72rem; }
.home-slideshow-controls button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #cfd5dc; border-radius: 50%; background: #fff; color: #17334b; cursor: pointer; }
.home-slideshow-controls button:hover { border-color: var(--commerce-green); box-shadow: none; color: var(--commerce-green); transform: none; }
.home-sale-slide { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); min-height: 390px; animation: homeSlideIn .42s ease both; }
@keyframes homeSlideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.home-sale-slide-media { position: relative; display: grid; min-height: 390px; place-items: center; padding: 34px; overflow: hidden; background: #f0f4f6; text-decoration: none; }
.home-sale-slide-media:hover { box-shadow: none; transform: none; }
.home-sale-slide-media::before { content: ""; position: absolute; width: 310px; height: 310px; border-radius: 50%; background: rgba(8,122,83,.075); }
.home-sale-slide-media img,
.home-sale-slide-media .home-product-placeholder { position: relative; z-index: 1; width: 100%; height: 300px; object-fit: contain; }
.home-sale-discount { position: absolute; z-index: 2; top: 24px; left: 24px; padding: 8px 11px; border-radius: 6px; background: #c4312e; color: #fff; font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.home-sale-slide-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px, 5vw, 64px); }
.home-sale-brand { color: var(--commerce-green); font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.home-sale-slide-copy h3 { max-width: 630px; margin: 10px 0 13px; color: #172b3d; font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.08; }
.home-sale-slide-copy p { display: -webkit-box; max-width: 620px; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #647281; line-height: 1.6; }
.home-sale-price-block { display: flex; align-items: baseline; gap: 12px; margin: 23px 0; flex-wrap: wrap; }
.home-sale-price-block del { color: #8995a2; font-size: 1rem; }
.home-sale-price-block strong { color: #c4312e; font-size: 2rem; }
.home-sale-price-block span { color: #647281; font-size: .76rem; }
.home-slide-dots { display: flex; justify-content: center; gap: 7px; padding: 0 20px 20px; }
.home-slide-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #cbd2d9; cursor: pointer; transition: width .2s ease, background .2s ease !important; }
.home-slide-dots button.is-active { width: 25px; background: var(--commerce-green); }
.home-slideshow-loading,
.home-slideshow-empty { display: grid; min-height: 370px; place-content: center; justify-items: center; gap: 12px; color: #657585; }

.home-merchandise-layout { display: grid; grid-template-columns: minmax(270px, .32fr) minmax(0, .68fr); gap: 18px; align-items: start; }
.home-wholesale-story { position: sticky; top: 82px; padding: 32px; background: linear-gradient(145deg, #0c314d, #09283e); color: #fff; }
.home-wholesale-story .home-kicker { color: #69d8a6; }
.home-wholesale-story h2 { margin: 11px 0 16px; font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 620; letter-spacing: -.04em; line-height: 1.1; }
.home-wholesale-story p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.65; }
.home-wholesale-story ul { display: grid; gap: 10px; margin: 23px 0; padding: 0; list-style: none; color: rgba(255,255,255,.86); font-size: .82rem; }
.home-wholesale-story li::before { content: "✓"; margin-right: 8px; color: #69d8a6; }
.home-wholesale-story > a { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: #fff; font-weight: 700; text-decoration: none; }
.home-wholesale-story > a:hover { box-shadow: none; color: #69d8a6; transform: none; }
.home-newest-section { gap: 16px; }
.home-newest-heading { display: flex; width: 100%; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0; text-align: left; }
.home-newest-heading > a { color: var(--commerce-green); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-newest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-newest-card { min-height: 285px; grid-template-rows: 155px auto auto auto; align-items: start; gap: 5px; padding: 13px; text-align: left; }
.home-newest-card:hover { border-color: rgba(8,122,83,.35); box-shadow: 0 10px 25px rgba(15,23,42,.1); }
.home-newest-image { display: grid; width: 100%; height: 155px; place-items: center; overflow: hidden; border-radius: 8px; background: #f5f7f8; }
.home-newest-image img { width: 100%; height: 100%; object-fit: contain; }
.home-newest-card > small { color: var(--commerce-green); font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-newest-card > strong { min-height: 38px; color: #1b2f41; font-size: .84rem; line-height: 1.35; }
.home-newest-card > div:last-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 5px; }
.home-newest-card > div:last-child b { color: #172b3d; font-size: 1.1rem; }
.home-newest-card > div:last-child span { color: #7a8794; font-size: .65rem; }
.home-new-badge { top: 20px; left: 20px; border-radius: 5px; background: var(--fluent-blue); }
.home-service-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 4vw, 42px); background: linear-gradient(100deg, #eef8f4, #f6fbfd); }
.home-service-banner h2 { margin: 7px 0 0; color: #12314a; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 620; letter-spacing: -.035em; }

/* Reports export command */
.analytics-export-group { display: grid; grid-template-columns: auto auto; align-items: end; gap: 5px 6px; margin-left: 4px; }
.analytics-export-group > label { grid-column: 1 / -1; color: #616161; font-size: .7rem; font-weight: 700; }
.analytics-export-group select { min-height: 36px; padding: 6px 8px; border: 1px solid #b9b9b9; border-radius: 4px; background: #fff; }
.analytics-export-button { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #b9b9b9; border-radius: 4px; background: #fff; color: #242424; font: 650 .8rem/1 "Segoe UI", sans-serif; cursor: pointer; }
.analytics-export-button:hover { border-color: var(--analytics-blue); box-shadow: none; color: var(--analytics-blue); transform: none; }
.analytics-export-button:disabled { opacity: .55; cursor: wait; }
.analytics-button-spinner-dark { border-color: rgba(15,108,189,.2); border-top-color: var(--analytics-blue); }
.analytics-query-builder { grid-template-columns: repeat(6, minmax(0, 1fr)) auto; }
.analytics-table code { padding: 2px 5px; border-radius: 4px; background: #eef3f7; color: #25445e; font-family: Consolas, monospace; font-size: .72rem; }

.site-footer { overflow: hidden; border: 0; background: linear-gradient(125deg, #0b2a42, #0b3e43); color: rgba(255,255,255,.78); }
.site-footer .mud-typography,
.site-footer .mud-link,
.site-footer .footer-link { color: inherit !important; }
.site-footer .mud-typography-h6,
.site-footer .mud-typography-subtitle2 { color: #fff !important; }
.site-footer .footer-link:hover,
.site-footer .mud-link:hover { box-shadow: none; color: #7ee0b2 !important; transform: none; }
.footer-fine-print { border-color: rgba(255,255,255,.12); }

@media (max-width: 1120px) {
  .header-market-label { display: none; }
  .home-commerce-hero { grid-template-columns: 1.05fr .95fr; }
  .home-newest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-command-bar { flex-wrap: wrap; }
  .analytics-export-group { margin-left: auto; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .site-header-inner { align-items: center; flex-wrap: nowrap; }
  .site-nav { width: auto; justify-content: flex-end; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; }
  .header-brand-logo { height: 44px; max-width: 150px; }
}

@media (max-width: 900px) {
  .home-commerce-hero { grid-template-columns: 1fr; }
  .home-hero-visual { min-height: 460px; }
  .home-value-strip { grid-template-columns: 1fr; }
  .home-value-strip > div + div { border-top: 1px solid var(--fluent-stroke); border-left: 0; }
  .home-merchandise-layout { grid-template-columns: 1fr; }
  .home-wholesale-story { position: static; }
  .analytics-query-builder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .page-shell { padding: 8px 7px 26px; }
  .site-header-inner { min-height: 52px; }
  .header-brand-logo { height: 44px; }
  .header-market-label { display: none !important; }
  .nav-toggle { background: rgba(255,255,255,.1); }
  .nav-toggle span { background: #fff; }
  .site-nav { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
  .home-hero-copy { padding: 34px 24px 39px; }
  .home-hero-copy h1 { font-size: clamp(2.1rem, 12vw, 3.25rem); }
  .home-hero-visual { min-height: 390px; padding: 38px 25px; }
  .home-hero-product > img,
  .home-hero-product > .home-product-placeholder { height: 250px; }
  .home-featured-image-slideshow { height: 250px; }
  .home-sale-slide { grid-template-columns: 1fr; }
  .home-sale-slide-media { min-height: 300px; }
  .home-sale-slide-media img,
  .home-sale-slide-media .home-product-placeholder { height: 245px; }
  .home-sale-slide-copy { padding: 30px 24px 36px; }
  .home-newest-heading,
  .home-service-banner { align-items: flex-start; flex-direction: column; }
  .home-service-banner .mud-button-root { width: 100%; }
  .analytics-export-group { width: 100%; margin-left: 0; grid-template-columns: 80px 1fr; }
  .analytics-export-group > label { grid-column: 1 / -1; }
  .analytics-export-button { justify-content: center; }
  .analytics-query-builder { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .home-hero-actions,
  .home-hero-actions .mud-button-root { width: 100%; }
  .home-trust-row { display: grid; gap: 9px; }
  .home-newest-grid { grid-template-columns: 1fr; }
  .home-sale-showcase .home-section-heading-row { align-items: flex-start; flex-direction: column; }
  .analytics-query-builder { grid-template-columns: 1fr; }
}
