﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --connectshop-orange: #f25925;
    --connectshop-blue: #20289c;
    --connectshop-navy: #16215b;
    --connectshop-cyan: #30d1ff;
    --cs-soft: light-dark(#eef2fb, #202e60);
    --cs-input-border: light-dark(#d3daee, #53628d);
    --cs-focus: #f25925;
}
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Poppins, Arial, sans-serif; }
h1:focus { outline: none; }
.cs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cs-brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; font-size: 1.25rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cs-brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--connectshop-orange); color: white; }
.cs-brand-shop { font-weight: 400; }
.cs-content { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.cs-hero { padding: 2.5rem 0 3rem; max-width: 800px; }
.cs-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.2; margin: .8rem 0 1.1rem; letter-spacing: -.03em; }
.cs-hero p { max-width: 680px; }
.cs-eyebrow { color: var(--mud-palette-primary); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

/* Shared tone tokens: one colour vocabulary across buttons, badges, tiles and notices. */
.cs-tone-orange { --cs-tone: #f25925; --cs-tone-hover: #df4914; --cs-tone-ink: light-dark(#b73a10, #ffb89e); --cs-tone-soft: light-dark(#ffede6, #412a33); --cs-tone-border: light-dark(#f6c9b7, #895445); --cs-tone-on: #fff; }
.cs-tone-royal { --cs-tone: light-dark(#20289c, #9ba7ff); --cs-tone-hover: light-dark(#16215b, #bbc4ff); --cs-tone-ink: light-dark(#20289c, #c6ceff); --cs-tone-soft: light-dark(#e6e8fa, #2b376b); --cs-tone-border: light-dark(#c4c8eb, #5b67a2); --cs-tone-on: light-dark(#fff, #10183d); }
.cs-tone-navy { --cs-tone: light-dark(#16215b, #293b87); --cs-tone-hover: light-dark(#20289c, #3b50ab); --cs-tone-ink: light-dark(#16215b, #dbe2ff); --cs-tone-soft: light-dark(#e8edfa, #29386d); --cs-tone-border: light-dark(#c5cee7, #5b6c9d); --cs-tone-on: #fff; }
.cs-tone-blue { --cs-tone: light-dark(#0373ff, #70acff); --cs-tone-hover: light-dark(#0256c4, #a7ccff); --cs-tone-ink: light-dark(#0256c4, #b7d6ff); --cs-tone-soft: light-dark(#e3eeff, #223f71); --cs-tone-border: light-dark(#b6d4ff, #4f76a9); --cs-tone-on: light-dark(#fff, #10183d); }
.cs-tone-aqua { --cs-tone: #30d1ff; --cs-tone-hover: #21b8e3; --cs-tone-ink: light-dark(#03708f, #8ce8ff); --cs-tone-soft: light-dark(#ddf7ff, #15425d); --cs-tone-border: light-dark(#aaeafb, #3b768c); --cs-tone-on: #16215b; }
.cs-tone-green { --cs-tone: light-dark(#11744a, #46d2ae); --cs-tone-hover: light-dark(#0c5c3a, #85e9ce); --cs-tone-ink: light-dark(#11744a, #8ae2bf); --cs-tone-soft: light-dark(#e2f6ec, #1b4543); --cs-tone-border: light-dark(#b0dfc9, #4c8176); --cs-tone-on: light-dark(#fff, #10183d); }
.cs-tone-yellow { --cs-tone: #f6bc35; --cs-tone-hover: #e0a519; --cs-tone-ink: light-dark(#896000, #ffdb82); --cs-tone-soft: light-dark(#fff5d7, #443c2d); --cs-tone-border: light-dark(#ecdca7, #8b7846); --cs-tone-on: #16215b; }
.cs-tone-red { --cs-tone: light-dark(#c3202c, #ff8991); --cs-tone-hover: light-dark(#a91924, #ffb3b8); --cs-tone-ink: light-dark(#b3202b, #ffb2b8); --cs-tone-soft: light-dark(#fde7e9, #4b293f); --cs-tone-border: light-dark(#f0c4c8, #925368); --cs-tone-on: light-dark(#fff, #10183d); }
.cs-tone-grey { --cs-tone: light-dark(#525c7f, #c3cce7); --cs-tone-hover: light-dark(#3c4668, #e2e8ff); --cs-tone-ink: light-dark(#525c7f, #cad2ec); --cs-tone-soft: light-dark(#eef1f8, #29365f); --cs-tone-border: light-dark(#d3daee, #5b6994); --cs-tone-on: light-dark(#fff, #10183d); }
.cs-tone-inherit { --cs-tone: currentColor; --cs-tone-hover: #fff; --cs-tone-ink: inherit; --cs-tone-soft: #ffffff1a; --cs-tone-border: #ffffff4d; --cs-tone-on: inherit; }

/* A single button handles ordinary actions, links, submit buttons and icon actions. */
.cs-button.mud-button-root { min-width: 0; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 12px; font: 700 14px/20px Poppins, Arial, sans-serif; text-transform: none; letter-spacing: 0; box-shadow: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.cs-button .mud-button-label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cs-button .cs-button-icon, .cs-button .cs-button-end-icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; }
.cs-button.cs-variant-filled { background: var(--cs-tone); color: var(--cs-tone-on); border-color: var(--cs-tone); }
.cs-button.cs-variant-outlined { background: var(--mud-palette-surface); color: var(--cs-tone-ink); border-color: var(--cs-tone-border); }
.cs-button.cs-variant-text { background: transparent; color: var(--cs-tone-ink); }
.cs-button.cs-variant-filled:not(:disabled):hover { background: var(--cs-tone-hover); border-color: var(--cs-tone-hover); box-shadow: none; }
.cs-button.cs-variant-outlined:not(:disabled):hover { background: var(--cs-tone); color: var(--cs-tone-on); border-color: var(--cs-tone); }
.cs-button.cs-variant-text:not(:disabled):hover { background: var(--cs-tone-soft); }
.cs-button.cs-tone-inherit.cs-variant-outlined { background: #ffffff1a; color: inherit; border-color: #ffffff4d; }
.cs-button.cs-tone-inherit.cs-variant-outlined:not(:disabled):hover { color: #16215b; background: #fff; border-color: #fff; }
.cs-button.mud-button-root:not(:disabled):active { transform: scale(.97); }
.cs-button.mud-button-root:focus-visible { outline: 3px solid #0373ff66; outline-offset: 3px; }
.cs-button:not(:disabled):hover .cs-button-icon { transform: translateX(-2px); }
.cs-button.mud-button-root:disabled, .cs-button.mud-button-root[aria-disabled=true] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.cs-button.cs-button--loading:disabled { opacity: .8; }
.cs-button.cs-size-small { padding-inline: 12px; font-size: 13px; }
.cs-button.cs-size-large { min-height: 52px; padding: 14px 24px; font-size: 15px; }
.cs-button.cs-button--icon { width: 40px; height: 40px; padding: 0; flex-shrink: 0; }
.cs-button.cs-button--icon.cs-size-large { width: 52px; height: 52px; }
.cs-button.cs-button--icon:hover .cs-button-icon { transform: none; }
.cs-button .cs-button-spinner { width: 16px !important; height: 16px !important; flex-shrink: 0; color: inherit; }
.cs-button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Status badges and icon backgrounds. */
.cs-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: fit-content; padding: 2px 10px; border-radius: 999px; background: var(--cs-tone-soft); color: var(--cs-tone-ink); font-size: 11px; font-weight: 600; line-height: 20px; white-space: nowrap; vertical-align: middle; }
.cs-badge--solid { background: var(--cs-tone); color: var(--cs-tone-on); }
.cs-badge .mud-icon-root { width: 12px; height: 12px; }
.cs-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cs-icon-badge { width: var(--cs-icon-dimension); height: var(--cs-icon-dimension); display: inline-grid; place-items: center; flex-shrink: 0; border-radius: var(--cs-icon-radius); background: var(--cs-tone-soft); color: var(--cs-tone-ink); }
.cs-icon-badge .mud-icon-root { width: var(--cs-icon-glyph); height: var(--cs-icon-glyph); }
.cs-icon-badge--solid { background: var(--cs-tone); color: var(--cs-tone-on); }
.cs-icon-badge--circle { border-radius: 50%; }

/* Cards compose rather than coupling presentation to commerce models. */
.cs-card.mud-paper { min-width: 0; border: 1px solid var(--mud-palette-lines-default); border-radius: 18px; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); box-shadow: none; overflow: hidden; }
.cs-card--hover { transition: transform .25s, border-color .25s; }
.cs-card--hover:hover { transform: translateY(-3px); border-color: light-dark(#b9c3e6, #7b8ab9); }
.cs-card.cs-card--coloured { background: var(--cs-tone); color: var(--cs-tone-on); border-color: var(--cs-tone); }
.cs-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: var(--cs-card-padding); padding-bottom: 0; }
.cs-card-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs-card-title { margin: 0; color: inherit; font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.cs-card-subtitle { margin: 4px 0 0; color: var(--mud-palette-text-secondary); font-size: 12px; line-height: 1.6; }
.cs-card-actions { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.cs-card-body { padding: var(--cs-card-padding); }
.cs-card-footer { padding: 16px var(--cs-card-padding); border-top: 1px solid var(--mud-palette-divider); }

/* Keep MudBlazor parsing and EditForm validation, with the wireframe input treatment. */
.cs-field { width: 100%; min-width: 0; }
.cs-field-label { display: block; margin-bottom: 6px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--mud-palette-text-primary); }
.cs-field-required { color: var(--mud-palette-primary); }
.cs-field .mud-input-control { margin: 0; }
.cs-field .mud-input { border-radius: 12px; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); font-size: 14px; min-height: 42px; }
.cs-field .mud-input-outlined .mud-input-outlined-border { border: 1px solid var(--cs-input-border); border-radius: 12px; }
.cs-field .mud-input-outlined:hover:not(.mud-disabled) .mud-input-outlined-border { border-color: light-dark(#a0aed5, #8a9ac6); }
.cs-field .mud-input-outlined:focus-within:not(.mud-disabled) { box-shadow: none; outline: none; }
.cs-field .mud-input-outlined:focus-within:not(.mud-disabled) .mud-input-outlined-border { border: 1px solid var(--cs-focus); }
.cs-field .mud-input.mud-input-error .mud-input-outlined-border { border-color: #d92d3a !important; }
.cs-field .mud-input.mud-input-error:focus-within { box-shadow: none; }
.cs-field input:focus-visible,.cs-field textarea:focus-visible,.cs-field [role=combobox]:focus-visible { outline: none; box-shadow: none; }
.cs-field .mud-input-outlined .mud-input-slot { padding: 10px 12px; line-height: 22px; }
.cs-field .mud-input-outlined.mud-input-adorned-start { padding-left: 12px; }
.cs-field .mud-input-outlined.mud-input-adorned-start .mud-input-slot { padding-left: 8px; }
.cs-field .mud-input-adornment-start { margin: 0; color: var(--mud-palette-text-secondary); }
.cs-field .mud-input-adornment .mud-icon-root { width: 16px; height: 16px; }
.cs-field input::placeholder, .cs-field textarea::placeholder { color: var(--mud-palette-text-secondary); opacity: .8; }
.cs-field .mud-input-helper-text { margin: 4px 0 0; padding: 0; font-size: 12px; line-height: 18px; }
.cs-field--multiline .mud-input { min-height: 96px; align-items: flex-start; }
.cs-field--disabled .mud-input { background: var(--cs-soft); }
.cs-checkbox .mud-typography { font-size: 13px; }
.cs-checkbox .mud-button-root { border-radius: 8px; }
.cs-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs-form-span { grid-column: 1 / -1; }
.cs-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }

/* Account navigation becomes a horizontally scrolling row on smaller screens. */
.cs-tabs { min-width: 0; }
.cs-tabs .mud-tabs-tabbar { background: transparent; color: var(--mud-palette-text-primary); box-shadow: none; }
.cs-tabs .mud-tabs-tabbar-wrapper { gap: 4px; }
.cs-tabs .mud-tab { min-height: 40px; padding: 10px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; white-space: nowrap; color: var(--mud-palette-text-primary); }
.cs-tabs .mud-tab .mud-icon-root { width: 16px; height: 16px; margin-right: 12px; }
.cs-tabs .mud-tab:hover { background: var(--mud-palette-surface); }
.cs-tabs .mud-tab.mud-tab-active { color: #fff; background: light-dark(#16215b, #3345a6); }
.cs-tabs .mud-tab.mud-tab-active .mud-icon-root { color: #30d1ff; }
.cs-tabs .mud-tab:focus-visible { outline: 3px solid #0373ff66; outline-offset: -3px; }
.cs-tabs .mud-tabs-panels, .cs-tabs .cs-tab-panels { min-width: 0; padding: 20px 0 0; }
.cs-tabs--pills .mud-tab { border: 1px solid var(--mud-palette-lines-default); border-radius: 999px; background: var(--mud-palette-surface); padding-inline: 14px; font-size: 12px; }
.cs-tabs--vertical { gap: 24px; align-items: flex-start; }
.cs-tabs--vertical > .mud-tabs-tabbar { width: 250px; min-width: 250px; }
.cs-tabs--vertical .mud-tabs-tabbar-wrapper { width: 100%; }
.cs-tabs--vertical .mud-tab { width: 100%; justify-content: flex-start; }
.cs-tabs--vertical .mud-tabs-panels, .cs-tabs--vertical .cs-tab-panels { flex: 1; padding: 0; }

/* Product card uses Card and Button; stock and prices are supplied by its caller. */
.cs-product-frame { height: 100%; display: flex; flex-direction: column; }
.cs-product-media { position: relative; overflow: hidden; background: var(--cs-soft); }
.cs-product-image-link { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; }
.cs-product-image-link img { width: 100%; height: 100%; object-fit: contain; padding: 16px; background: white; transition: transform .5s; }
.cs-product-card:hover .cs-product-image-link img { transform: scale(1.05); }
.cs-product-image-link:focus-visible { outline: 3px solid #0373ff; outline-offset: -3px; }
.cs-product-placeholder { display: grid; place-items: center; color: var(--mud-palette-text-secondary); }
.cs-product-placeholder .mud-icon-root { width: 64px; height: 64px; opacity: .45; }
.cs-product-flags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; pointer-events: none; }
.cs-product-content { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px; }
.cs-product-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.cs-product-category { font-size: 10px; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--mud-palette-tertiary); font-weight: 600; }
.cs-product-title { margin: 0; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--mud-palette-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-product-title a { color: inherit; text-decoration: none; }
.cs-product-title a:hover { color: var(--mud-palette-secondary); }
.cs-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; margin-top: auto; }
.cs-product-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.cs-product-price { font-size: 18px; line-height: 26px; font-weight: 700; }
.cs-product-price--sale { color: var(--mud-palette-primary); }
.cs-product-original { font-size: 12px; color: var(--mud-palette-text-secondary); }
.cs-product-add.cs-button { border-color: var(--mud-palette-lines-default); }
.cs-product-add.cs-button:not(:disabled):hover { background: #f25925; color: white; border-color: #f25925; }
.cs-product-add.cs-product-add--added { color: var(--cs-tone-ink); background: var(--cs-tone-soft); }
.cs-product-image-skeleton { aspect-ratio: 1; width: 100%; }
.cs-skeleton { background: var(--cs-soft); animation: cs-pulse 1.8s ease-in-out infinite; border-radius: 6px; }
.cs-product-image-skeleton.cs-skeleton { border-radius: 0; }
.cs-skeleton-short { height: 18px; width: 40%; }
.cs-skeleton-line { height: 22px; width: 85%; }
.cs-skeleton-price { height: 40px; width: 55%; margin-top: 12px; }
@keyframes cs-pulse { 50% { opacity: .45; } }

/* Small commerce and feedback building blocks. */
.cs-quantity { display: inline-flex; align-items: center; flex-shrink: 0; width: max-content; height: 52px; border: 1px solid var(--cs-input-border); border-radius: 12px; background: var(--mud-palette-surface); overflow: hidden; }
.cs-quantity .cs-button.cs-button--icon { width: 48px; height: 50px; border-radius: 0; }
.cs-quantity input { min-width: 40px; width: 40px; height: 100%; padding: 0; text-align: center; border: 0; outline: 0; font: 600 14px Poppins, Arial, sans-serif; background: transparent; color: var(--mud-palette-text-primary); appearance: textfield; }
.cs-quantity input::-webkit-inner-spin-button, .cs-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.cs-quantity:focus-within { outline: none; border-color: var(--cs-focus); box-shadow: none; }
.cs-quantity--compact { height: 40px; }
.cs-quantity--compact .cs-button.cs-button--icon { width: 36px; height: 38px; }
.cs-stat-card .cs-card-body { display: flex; flex-direction: column; gap: 10px; }
.cs-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-stat-label { font-size: 12px; font-weight: 500; }
.cs-stat-icon { width: 22px; height: 22px; color: var(--cs-tone); }
.cs-card--coloured .cs-stat-icon { color: #30d1ff; }
.cs-stat-value { font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }
.cs-stat-description { font-size: 12px; color: var(--mud-palette-text-secondary); }
.cs-card--coloured .cs-stat-description { color: #ffffffbd; }
.cs-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; }
.cs-empty-state .cs-icon-badge { color: #30d1ff; margin: 8px 0 20px; box-shadow: 0 0 0 8px #30d1ff12; }
.cs-empty-state h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.cs-empty-state p { max-width: 380px; margin: 0; color: var(--mud-palette-text-secondary); font-size: 14px; line-height: 1.7; }
.cs-empty-actions { margin-top: 20px; }
.cs-loading-state { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: var(--mud-palette-text-secondary); font-size: 14px; }
.cs-notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--cs-tone-border); border-radius: 12px; background: var(--cs-tone-soft); color: var(--cs-tone-ink); font-size: 13px; line-height: 1.7; }
.cs-notice > .mud-icon-root { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.cs-notice-content { flex: 1; min-width: 0; }
.cs-notice-content > strong { display: block; margin-bottom: 2px; font-weight: 600; }
.cs-notice .cs-button { margin: -8px -8px -8px 0; }

/* Shared gallery and existing application shell. */
.cs-gallery { display: flex; flex-direction: column; gap: 28px; }
.cs-gallery-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 4px; }
.cs-gallery-header h1 { margin: 10px 0; font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.cs-gallery-header p { margin: 0; max-width: 660px; font-size: 14px; color: var(--mud-palette-text-secondary); }
.cs-gallery-section { scroll-margin-top: 100px; }
.cs-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cs-section-heading h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.cs-section-heading p { margin: 4px 0 0; font-size: 13px; color: var(--mud-palette-text-secondary); }
.cs-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cs-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-gallery-stack { display: flex; flex-direction: column; gap: 20px; }
.cs-gallery-divider { border: 0; border-top: 1px solid var(--mud-palette-divider); margin: 24px 0; }
.cs-gallery-caption { margin: 12px 0 0; font-size: 12px; color: var(--mud-palette-text-secondary); }
.cs-icon-examples { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cs-gallery-dark { background: #16215b; color: #fff; border-radius: 12px; padding: 16px; margin-top: 20px; }
.cs-account-welcome { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cs-account-welcome h3 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.cs-account-welcome p { margin: 0; font-size: 13px; color: var(--mud-palette-text-secondary); }
.cs-account-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.cs-swatch-list { display: flex; flex-wrap: wrap; gap: 1.3rem 2.5rem; }
.cs-swatch { display: flex; align-items: center; gap: .75rem; font-size: .9rem; font-weight: 600; }
.cs-swatch-colour { display: block; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #80808026; }
.cs-swatch small { display: block; font-weight: 400; font-size: .75rem; color: var(--mud-palette-text-secondary); }
.cs-admin-brand { padding: 1.5rem 1rem; border-bottom: 1px solid #ffffff26; }
.cs-admin-caption { display: block; margin: .65rem 0 0 3.1rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.cs-admin-nav { padding: 1rem .6rem; }
.cs-admin-nav .mud-nav-link { border-radius: 12px; margin-bottom: .35rem; }
.cs-admin-nav .mud-nav-link.active { background: #ffffff14; color: #fff; }
.cs-admin-nav .mud-nav-link.active .mud-nav-link-icon { color: #30d1ff; }
.cs-admin-nav .mud-nav-link-disabled, .cs-admin-nav .mud-nav-link-disabled .mud-nav-link-icon { color: #ffffff7a !important; }
.cs-footer { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--mud-palette-divider); color: var(--mud-palette-text-secondary); font-size: .8rem; }
.cs-domain { color: var(--mud-palette-text-secondary); font-size: .8rem; }
.cs-theme-preview { scroll-margin-top: 100px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; z-index: 10000; padding: .8rem 1.25rem; background: #fff4ce; color: #16215b; box-shadow: 0 -1px 4px #00000026; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .6rem; }

@media (max-width: 1199px) {
    .cs-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .cs-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .cs-content { padding: 1.5rem 1rem; }
    .cs-hero { padding: 1.2rem 0 2rem; }
    .cs-domain { display: none; }
    .cs-brand { font-size: 1.1rem; }
    .cs-stats-grid { gap: 12px; }
    .cs-product-grid { gap: 12px; }
    .cs-form-grid { grid-template-columns: 1fr; }
    .cs-card-header { align-items: flex-start; flex-wrap: wrap; }
    .cs-section-heading { align-items: flex-start; flex-wrap: wrap; }
    .cs-product-meta { align-items: flex-start; flex-direction: column; }
    .cs-product-title { font-size: 13px; line-height: 21px; }
    .cs-product-content { padding: 12px; }
    .cs-product-price { font-size: 16px; }
    .cs-product-flags { top: 8px; left: 8px; flex-wrap: wrap; gap: 4px; }
    .cs-product-flags .cs-badge { padding-inline: 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cs-button.mud-button-root, .cs-button .cs-button-icon, .cs-card--hover, .cs-product-image-link img { transition: none; }
    .cs-button.mud-button-root:active, .cs-card--hover:hover, .cs-product-card:hover .cs-product-image-link img { transform: none; }
    .cs-skeleton { animation: none; }
}

.cs-tabs .mud-tab.mud-disabled { opacity: .4; pointer-events: none; }
.cs-tabs .cs-tab-panels { display: block; }
.cs-tabs .cs-tab-panels > .mud-tab-panel { width: 100%; }
.cs-tabs--vertical .mud-tooltip-root { width: 100%; }
.cs-tabs--vertical > .mud-tabs-tabbar { flex: 0 0 250px; }
.cs-tabs--account:not(.cs-tabs--vertical) .mud-tabs-tabbar { width: 100%; }
.cs-admin-nav .mud-nav-link.active:not(.mud-nav-link-disabled) { background: #ffffff14; color: #fff !important; box-shadow: inset 4px 0 #f25925; }
.cs-button.mud-button-root.cs-variant-filled:disabled { background-color: var(--cs-tone) !important; color: var(--cs-tone-on) !important; border-color: var(--cs-tone); }
.cs-button.mud-button-root.cs-variant-outlined:disabled { background-color: var(--mud-palette-surface) !important; color: var(--cs-tone-ink) !important; border-color: var(--cs-tone-border); }
.cs-button.mud-button-root.cs-variant-text:disabled { background-color: transparent !important; color: var(--cs-tone-ink) !important; }
