/* Catalog design system: shared by storefront, preview, cart and checkout. */
.catalog-theme {
  --shop-font: 'Segoe UI', Roboto, Arial, sans-serif;
  --shop-heading: var(--shop-font);
  --shop-bg: #f3f7fc;
  --shop-surface: #fff;
  --shop-soft: #eaf2ff;
  --shop-border: #dae5f2;
  --shop-text: #182e4b;
  --shop-muted: #5c6e84;
  --shop-accent: #1764df;
  --shop-accent-dark: #124697;
  --shop-hero: linear-gradient(115deg, #143975, #246de3);
  --shop-hero-text: #fff;
  --shop-success: #0b8459;
  --shop-cart: #eaf2ff;
  --shop-radius: 18px;
  font-family: var(--shop-font);
  color: var(--shop-text);
}
.catalog-theme--elegant {
  --shop-heading: Georgia, 'Times New Roman', serif;
  --shop-bg: #f7f5ef;
  --shop-soft: #f0eee5;
  --shop-border: #dfded2;
  --shop-text: #2a3528;
  --shop-muted: #626a5a;
  --shop-accent: #5a6949;
  --shop-accent-dark: #3d4a30;
  --shop-hero: #eeeadd;
  --shop-hero-text: #2a3528;
  --shop-success: #516543;
  --shop-cart: #eaeedd;
  --shop-radius: 10px;
}
.catalog-theme--colorful {
  --shop-bg: #fff9ec;
  --shop-soft: #fff0cd;
  --shop-border: #efdfba;
  --shop-text: #23344f;
  --shop-muted: #716650;
  --shop-accent: #db4724;
  --shop-accent-dark: #b63618;
  --shop-hero: linear-gradient(115deg, #ee6529, #db4526);
  --shop-success: #10776e;
  --shop-cart: #fff0b9;
  --shop-radius: 22px;
}
body.catalog-storefront { margin: 0; background: var(--shop-bg); }
.catalog-symbol { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.catalog-theme *, .catalog-storefront .checkout-overlay * { box-sizing: border-box; }
.catalog-theme .public-catalog, .catalog-theme.public-catalog { font-family: var(--shop-font); color: var(--shop-text); }
.catalog-theme .public-shell { max-width: 1440px; padding: 26px 28px 40px; }
.catalog-theme .public-hero {
  background: var(--shop-hero); color: var(--shop-hero-text);
  padding: 30px; border-radius: var(--shop-radius); margin-bottom: 20px;
  gap: 24px; min-height: 155px; box-shadow: none;
}
.catalog-theme .public-hero__identity { flex: 1; gap: 20px; }
.catalog-theme .public-hero__logo { width: 88px; height: 88px; padding: 10px; border-radius: 18px; box-shadow: none; }
.catalog-theme .public-hero__logo--placeholder { color: var(--shop-accent); }
.catalog-theme .public-hero__logo--placeholder svg { width: 35px; height: 35px; }
.catalog-theme .public-hero__copy h1 {
  font: 700 clamp(1.6rem, 2.6vw, 2.3rem)/1.15 var(--shop-heading);
  letter-spacing: -.03em; margin: 10px 0; color: inherit; overflow-wrap: anywhere;
}
.catalog-theme .public-hero__copy p { font-size: .9rem; color: inherit; opacity: .92; max-width: 680px; line-height: 1.6; }
.catalog-theme .public-badge { color: inherit; background: #ffffff21; padding: 5px 9px; font-size: .63rem; letter-spacing: .14em; }
.catalog-theme .public-hero__contact { min-width: 0; max-width: 330px; gap: 9px; font-size: .8rem; line-height: 1.5; }
.catalog-theme .public-hero__contact > span, .catalog-theme .public-hero__contact > a { display: flex; gap: 9px; align-items: center; }
.catalog-theme .public-hero__contact svg { width: 16px; height: 16px; }
.catalog-theme .public-contact { color: inherit; background: #ffffff22; border: 1px solid #ffffff30; padding: 10px 14px; margin-top: 3px; border-radius: 9px; font-size: .8rem; }
.catalog-theme--elegant .public-hero { border: 1px solid var(--shop-border); }
.catalog-theme--elegant .public-badge { background: #dcdacb; }
.catalog-theme--elegant .public-contact { background: var(--shop-accent); color: white; }
.catalog-theme--colorful .public-hero__logo, .catalog-theme--colorful .public-contact { background: #ffe17a; color: #293b4b; }
.catalog-theme .public-toolbar { padding: 18px 20px; gap: 15px; border: 1px solid var(--shop-border); border-radius: var(--shop-radius); background: var(--shop-surface); box-shadow: none; margin-bottom: 24px; }
.catalog-theme .public-toolbar__filters { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 12px; }
.catalog-theme .public-field { gap: 7px; min-width: 0; }
.catalog-theme .public-field > span { font-size: .76rem; color: var(--shop-muted); font-weight: 650; }
.catalog-theme .public-field input, .catalog-theme .public-field select,
.catalog-storefront .checkout-form input, .catalog-storefront .checkout-form select {
  background: var(--shop-surface); color: var(--shop-text); border: 1px solid var(--shop-border);
  border-radius: 9px; font: 400 .88rem var(--shop-font); min-height: 44px; padding: 10px 12px;
}
.catalog-theme .public-search-input { position: relative; }
.catalog-theme .public-search-input > svg { position: absolute; top: 13px; left: 13px; color: var(--shop-accent); }
.catalog-theme .public-search-input input { padding-left: 43px; }
.catalog-theme .public-field input:focus, .catalog-theme .public-field select:focus,
.catalog-storefront .checkout-form input:focus, .catalog-storefront .checkout-form select:focus {
  border-color: var(--shop-accent); box-shadow: 0 0 0 3px var(--shop-soft);
}
.catalog-theme .public-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.catalog-theme .public-layout > section { min-width: 0; }
.catalog-theme .public-resultsbar { background: none; border: 0; padding: 0 0 16px; margin: 0; align-items: center; gap: 12px; }
.catalog-theme .public-resultsbar h2 { font: 700 1.35rem var(--shop-heading); margin: 0 0 6px; letter-spacing: -.02em; }
.catalog-theme .public-resultsbar span, .catalog-theme .public-resultsbar p { font-size: .78rem; color: var(--shop-muted); }
.catalog-theme .public-resultsbar p { max-width: 250px; text-align: right; }
.catalog-theme .public-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-theme .public-card { min-width: 0; gap: 13px; padding: 12px; background: var(--shop-surface); border: 1px solid var(--shop-border); border-radius: var(--shop-radius); box-shadow: 0 4px 15px #18344d04; }
.catalog-theme .public-card:hover { border-color: var(--shop-accent); box-shadow: 0 10px 22px #18344d0a; }
.catalog-theme .public-card.is-out { opacity: 1; }
.catalog-theme .public-card__media { background: var(--shop-bg); border-radius: calc(var(--shop-radius) - 6px); min-height: 195px; padding: 24px 12px 10px; }
.catalog-theme .public-card__media::after { display: none; }
.catalog-theme .public-card img { height: 165px; filter: none; }
.catalog-theme .public-card__fallback { height: 165px; color: var(--shop-muted); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.catalog-theme .public-card__fallback svg { width: 48px; height: 48px; opacity: .5; }
.catalog-theme .public-card__fallback small { font-size: .72rem; }
.catalog-theme .public-stock { left: 9px; top: 9px; padding: 5px 8px; font-size: .66rem; }
.catalog-theme .public-stock.in-stock { background: #e0f4e9; color: #176640; }
.catalog-theme--colorful .public-stock.in-stock { background: #d1f3ee; color: #125d56; }
.catalog-theme .public-card__body { gap: 9px; flex: 1; grid-template-rows: auto 1fr auto auto; }
.catalog-theme .public-sku { background: transparent; color: var(--shop-muted); padding: 0; font-size: .67rem; letter-spacing: .04em; max-width: 100%; overflow-wrap: anywhere; }
.catalog-theme .public-card h3 { font: 650 .96rem/1.45 var(--shop-font); color: var(--shop-text); min-height: 44px; overflow-wrap: anywhere; }
.catalog-theme--elegant .public-card h3 { font-family: var(--shop-heading); }
.catalog-theme .public-card__price small { color: var(--shop-muted); font-size: .7rem; font-weight: 400; }
.catalog-theme .public-card__price strong { color: var(--shop-accent-dark); font: 750 1.65rem/1.2 var(--shop-heading); letter-spacing: -.035em; }
.catalog-theme .public-card button { background: var(--shop-accent); color: #fff; border-radius: 9px; font: 650 .8rem var(--shop-font); padding: 12px 8px; min-height: 44px; gap: 6px; }
.catalog-theme .public-card button svg { width: 16px; height: 16px; }
.catalog-theme .public-card button:disabled { background: #e7e9ed; color: #636d79; }
.catalog-preview-dialog .public-card:not(.is-out) button:disabled { background: var(--shop-accent); color: white; }
/* A tinted cart is deliberately distinct from the product grid. */
.catalog-theme .cart-sidebar { top: 20px; }
.catalog-theme .cart-sidebar__panel { position: relative; background: var(--shop-cart); border: 1px solid var(--shop-border); border-radius: var(--shop-radius); padding: 20px; gap: 16px; box-shadow: none; }
.catalog-theme .cart-sidebar__header { align-items: center; border-color: var(--shop-border); padding-bottom: 16px; }
.catalog-theme .cart-sidebar__header small { font-size: .65rem; color: var(--shop-muted); }
.catalog-theme .cart-sidebar__header h2 { display: flex; gap: 8px; align-items: center; font: 750 1.25rem var(--shop-heading); margin-top: 7px; }
.catalog-theme .cart-pill { background: var(--shop-surface); color: var(--shop-accent-dark); padding: 7px 9px; font-size: .7rem; white-space: nowrap; }
.catalog-theme .cart-summary { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.catalog-theme .cart-summary > div { border: 1px solid var(--shop-border); background: #ffffffb3; padding: 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 5px; }
.catalog-theme .cart-summary span { color: var(--shop-muted); font-size: .73rem; }
.catalog-theme .cart-summary strong { color: var(--shop-accent-dark); font-size: 1.4rem; margin: 0; }
.catalog-theme .cart-lines { gap: 10px; max-height: 40vh; }
.catalog-theme .cart-line { padding: 12px; background: var(--shop-surface); border: 1px solid var(--shop-border); border-radius: 12px; }
.catalog-theme .cart-line__identity { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.catalog-theme .cart-line__image { display: grid; place-items: center; flex: none; width: 40px; height: 45px; background: var(--shop-bg); border-radius: 7px; color: var(--shop-muted); overflow: hidden; }
.catalog-theme .cart-line__image img { width: 100%; height: 100%; object-fit: contain; }
.catalog-theme .cart-line__main { min-width: 0; margin: 0; }
.catalog-theme .cart-line__main strong { font-size: .8rem; color: var(--shop-text); overflow-wrap: anywhere; }
.catalog-theme .cart-line__main small { font-size: .68rem; overflow-wrap: anywhere; }
.catalog-theme .cart-line__controls { grid-template-columns: 36px 1fr 36px 36px; gap: 7px; }
.catalog-theme .cart-line__controls button { background: var(--shop-soft); color: var(--shop-accent-dark); height: 36px; padding: 0; font: 700 1.1rem var(--shop-font); }
.catalog-theme .cart-line__controls button:last-child { background: #fff0ed; color: #a73529; }
.catalog-theme .cart-line__controls button:disabled { opacity: .4; cursor: not-allowed; }
.catalog-theme .cart-line__controls span { color: var(--shop-text); }
.catalog-theme .cart-total { padding: 16px 0; margin-top: 14px; border-color: var(--shop-border); }
.catalog-theme .cart-total > div { width: 100%; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.catalog-theme .cart-total span { font-size: .8rem; color: var(--shop-muted); }
.catalog-theme .cart-total strong { color: var(--shop-accent-dark); font-size: 1.6rem; margin: 0; white-space: nowrap; }
.catalog-theme .cart-sidebar .cat-success { background: var(--shop-success); font: 650 .88rem var(--shop-font); min-height: 46px; border-radius: 9px; }
.catalog-theme .cart-sidebar .cat-success:disabled { opacity: .45; cursor: not-allowed; }
.catalog-theme .cart-note { display: block; margin-top: 12px; color: var(--shop-muted); font-size: .73rem; }
.catalog-theme .cart-empty { padding: 20px 8px; gap: 12px; }
.catalog-theme .cart-empty__icon { background: var(--shop-surface); color: var(--shop-accent); width: 58px; height: 58px; }
.catalog-theme .cart-empty__icon svg { width: 28px; height: 28px; }
.catalog-theme .cart-empty strong { font-size: .95rem; }
.catalog-theme .cart-empty p { font-size: .8rem; color: var(--shop-muted); }
.catalog-theme .cart-close { display: none; }
.catalog-theme .public-mobile-cart { background: var(--shop-accent); color: #fff; align-items: center; gap: 10px; font: 650 .9rem var(--shop-font); }
.catalog-theme .public-mobile-cart strong { margin-left: auto; }
.catalog-theme .public-mobile-cart span { background: #ffffff25; padding: 3px 7px; border-radius: 20px; }
.catalog-theme .public-empty-results, .catalog-theme .public-state { color: var(--shop-text); background: var(--shop-surface); border-color: var(--shop-border); }
.catalog-theme .public-state { display: flex; flex-direction: column; justify-content: center; align-items: center; }
/* Overlays are appended to body and must inherit the storefront font and theme. */
.catalog-storefront .checkout-overlay { font-family: var(--shop-font); color: var(--shop-text); background: #122039a6; }
.catalog-storefront .checkout-form { padding: 28px; gap: 16px; max-width: 530px; border-radius: var(--shop-radius); border: 1px solid var(--shop-border); background: var(--shop-surface); }
.catalog-storefront .checkout-form__header { border-bottom: 1px solid var(--shop-border); padding-bottom: 18px; }
.catalog-storefront .checkout-form__header small { font: 700 .66rem var(--shop-font); color: var(--shop-accent-dark); letter-spacing: .12em; }
.catalog-storefront .checkout-form h2 { font: 750 1.65rem var(--shop-heading); color: var(--shop-text); margin: 8px 0; }
.catalog-storefront .checkout-form p { font: 400 .85rem/1.6 var(--shop-font); color: var(--shop-muted); }
.catalog-storefront .checkout-form label { font: 650 .8rem var(--shop-font); color: var(--shop-text); gap: 8px; }
.catalog-storefront .checkout-form [hidden] { display: none !important; }
.catalog-storefront .checkout-total { background: var(--shop-cart); color: var(--shop-accent-dark); border: 1px solid var(--shop-border); border-radius: 10px; font: 750 .95rem var(--shop-font); padding: 17px; }
.catalog-storefront .checkout-actions { grid-template-columns: 1.2fr 1fr; }
.catalog-storefront .checkout-actions--stack { grid-template-columns: 1fr; }
.catalog-storefront .checkout-form button { background: var(--shop-accent); color: white; font: 650 .88rem var(--shop-font); min-height: 46px; border-radius: 9px; }
.catalog-storefront .checkout-form button[type=submit] { background: var(--shop-success); }
.catalog-storefront .checkout-form .checkout-secondary { background: var(--shop-soft) !important; color: var(--shop-accent-dark) !important; }
.catalog-storefront .checkout-form .checkout-error { color: #a5322d; margin: 0; font-size: .8rem; }
.catalog-storefront .checkout-success { color: var(--shop-success); background: var(--shop-cart); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: auto; }
.catalog-storefront .checkout-success svg { width: 32px; height: 32px; }
.catalog-storefront .checkout-form--success { text-align: center; }
.catalog-storefront .checkout-form button:disabled { opacity: .5; cursor: wait; }
.catalog-theme button:focus-visible, .catalog-theme a:focus-visible,
.catalog-storefront .checkout-form button:focus-visible { outline: 3px solid var(--shop-accent-dark); outline-offset: 3px; }
@media (max-width: 1180px) {
  .catalog-theme .public-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .catalog-theme .public-layout { grid-template-columns: 1fr; }
  .catalog-theme .public-mobile-cart { display: flex; bottom: max(14px, env(safe-area-inset-bottom)); }
  .catalog-theme .public-shell { padding-bottom: 100px; }
  .catalog-theme .cart-sidebar.open { bottom: 82px; max-height: calc(100dvh - 110px); border-radius: var(--shop-radius); }
  .catalog-theme .cart-close { display: block; position: absolute; top: 5px; right: 6px; padding: 0; width: 28px; height: 28px; background: none; color: var(--shop-text); font-size: 1.3rem; }
}
@media (max-width: 900px) {
  .catalog-theme .public-hero { padding: 24px; align-items: stretch; }
  .catalog-theme .public-hero__contact { max-width: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .catalog-theme .public-shell { padding: 14px 12px 100px; }
  .catalog-theme .public-hero { padding: 20px 16px; gap: 18px; }
  .catalog-theme .public-hero__identity { gap: 13px; }
  .catalog-theme .public-hero__logo { width: 64px; height: 64px; border-radius: 12px; }
  .catalog-theme .public-hero__copy h1 { font-size: 1.5rem; }
  .catalog-theme .public-hero__copy p { font-size: .8rem; }
  .catalog-theme .public-hero__contact { grid-template-columns: 1fr; font-size: .75rem; }
  .catalog-theme .public-toolbar { padding: 14px; margin-bottom: 20px; }
  .catalog-theme .public-toolbar__filters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .catalog-theme .public-resultsbar { align-items: flex-start; gap: 6px; }
  .catalog-theme .public-resultsbar h2 { font-size: 1.2rem; }
  .catalog-theme .public-resultsbar p { text-align: left; max-width: none; }
  .catalog-theme .public-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-theme .public-card { padding: 9px; }
  .catalog-theme .public-card__media { min-height: 150px; padding: 24px 8px 8px; }
  .catalog-theme .public-card img, .catalog-theme .public-card__fallback { height: 120px; }
  .catalog-theme .public-card h3 { font-size: .83rem; }
  .catalog-theme .public-card__price strong { font-size: 1.4rem; }
  .catalog-theme .public-card button { font-size: .7rem; gap: 3px; }
  .catalog-theme .public-card button svg { display: none; }
  .catalog-storefront .checkout-form { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-theme *, .catalog-storefront .checkout-form * { transition: none !important; }
}
/* Administration: quieter surfaces, clear hierarchy and consistent form spacing. */
.catalog-admin {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  --cat-text: #19334f; --cat-muted: #62748a;
}
.catalog-admin .catalog-hero--dashboard { border-radius: 18px; padding: 22px 24px; box-shadow: none; }
.catalog-admin .catalog-hero__copy h2 { font-size: 1.8rem; font-weight: 750 !important; }
.catalog-admin .catalog-hero__eyebrow { font-size: .64rem; letter-spacing: .13em; }
.catalog-admin .catalog-hero__copy p { font-size: .88rem; }
.catalog-admin .catalog-loading { padding: 20px; margin-top: 16px; border: 1px solid #e0e8f1; box-shadow: none; background: #f7f9fc; }
.catalog-admin .catalog-stats--enhanced { margin: 0 0 18px; gap: 14px; }
.catalog-admin .catalog-stats--enhanced .catalog-stat-card { min-height: 90px; padding: 16px; box-shadow: none; border-color: #e0e8f1; }
.catalog-admin .catalog-stats--enhanced .catalog-stat-card small { font-size: .8rem !important; font-weight: 650 !important; }
.catalog-admin .catalog-stats--enhanced .catalog-stat-card strong { font-size: 1.7rem !important; font-weight: 750 !important; }
.catalog-admin .catalog-stats--enhanced .catalog-stat-card--status strong { font-size: 1.1rem !important; margin: 7px 0; }
.catalog-admin .catalog-stats--enhanced .catalog-stat-card span { font-size: .75rem; font-weight: 400; color: #66788d; }
.catalog-admin .catalog-grid--045 { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 18px; }
.catalog-admin .catalog-grid--045 .catalog-panel { padding: 22px; box-shadow: none; border-color: #e0e8f1; border-radius: 16px; }
.catalog-admin .catalog-panel__header { padding-bottom: 16px; border-bottom: 1px solid #e8edf4; margin-bottom: 18px; }
.catalog-admin .catalog-grid--045 .catalog-panel__header h3 { font-size: 1.12rem; font-weight: 750 !important; color: #19334f; }
.catalog-admin .catalog-grid--045 .catalog-panel__header p { font-size: .8rem; color: #66788d; font-weight: 400; line-height: 1.5; margin-top: 5px; }
.catalog-admin .catalog-panel__icon { width: 38px; height: 38px; border-radius: 10px; }
.catalog-admin .catalog-grid--045 .catalog-field { margin: 0 0 16px; gap: 7px; }
.catalog-admin .catalog-grid--045 .catalog-field > span { font-size: .8rem; color: #34516c !important; font-weight: 650 !important; }
.catalog-admin .catalog-field-grid { gap: 14px; align-items: start; }
.catalog-admin .catalog-field input, .catalog-admin .catalog-field textarea { font-size: .88rem; border-color: #d4e0eb; border-radius: 9px; min-height: 44px; }
.catalog-admin .catalog-input-icon input { min-height: 42px; }
.catalog-admin .catalog-field textarea { min-height: 84px; line-height: 1.5; }
.catalog-admin .catalog-inline-link { font-size: .72rem; line-height: 1.45; }
.catalog-admin .catalog-inline-link span { overflow-wrap: anywhere; }
.catalog-admin .catalog-media-block { padding-top: 20px; margin-top: 4px; border-color: #e8edf4; }
.catalog-admin .catalog-grid--045 .catalog-media-block__head h4 { font-size: .92rem; font-weight: 750 !important; color: #19334f; }
.catalog-admin .catalog-grid--045 .catalog-media-block__head p { font-size: .78rem; font-weight: 400; color: #66788d; line-height: 1.5; }
.catalog-admin .catalog-logo-layout--company { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
.catalog-admin .catalog-logo-layout--company .catalog-logo-card { min-height: 100px; }
.catalog-admin .catalog-logo-layout--company .catalog-logo-card img { max-height: 90px; }
.catalog-admin .catalog-logo-source { background: #f6f9fc; border-color: #e0e8f1; padding: 14px; }
.catalog-admin .catalog-logo-source strong { font-size: .8rem; }
.catalog-admin .catalog-logo-source p { font-size: .76rem; line-height: 1.6; }
.catalog-admin .catalog-manage-spotlight { padding: 22px 18px; background: #f3f7fd; border-color: #e0e8f1; border-radius: 13px; gap: 10px; }
.catalog-admin .catalog-manage-spotlight__icon { width: 46px; height: 46px; border-radius: 13px; }
.catalog-admin .catalog-manage-spotlight > strong { font-size: 2.6rem; font-weight: 750; }
.catalog-admin .catalog-manage-spotlight > span { font-size: .82rem; font-weight: 550; }
.catalog-admin .catalog-manage-spotlight > small { font-size: .76rem; font-weight: 400; }
.catalog-admin .catalog-manage-open { padding: 13px 18px; font-size: .85rem; font-weight: 650; border-radius: 9px; box-shadow: none; }
.catalog-admin .catalog-management-info h4 { font-size: .85rem; font-weight: 650; padding: 14px; }
.catalog-admin .catalog-management-info > div { padding: 12px 14px; font-size: .8rem; font-weight: 400; }
.catalog-admin .catalog-management-info > div strong { font-weight: 650; }
.catalog-admin .catalog-management-tip { padding: 14px; border-radius: 12px; }
.catalog-admin .catalog-management-tip strong { font-size: .82rem; font-weight: 650; }
.catalog-admin .catalog-management-tip p { font-size: .74rem; }
.catalog-admin .catalog-actions--dock { padding: 13px; border-radius: 13px; border-color: #dce6f2; box-shadow: 0 -4px 18px #18344d06; }
.catalog-admin .catalog-grid--045 + .catalog-actions--dock button { font-size: .8rem; font-weight: 650; padding: 11px 13px; border-radius: 9px; }
.catalog-admin .catalog-global-feedback { font-size: .82rem; font-weight: 500; }
/* Real radio inputs and small complete storefront previews replace banner swatches. */
.catalog-admin .catalog-theme-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.catalog-admin .catalog-theme-choice { position: relative; margin: 0 !important; padding: 9px; border: 1px solid #dce5f0; border-radius: 12px; cursor: pointer; display: flex !important; flex-direction: column; gap: 8px; min-width: 0; }
.catalog-admin .catalog-theme-choice > input { position: absolute; top: 14px; right: 14px; width: 16px; min-height: 16px; height: 16px; padding: 0; margin: 0; accent-color: #1764df; z-index: 1; }
.catalog-theme-choice:focus-within { outline: 3px solid #b4d1ff; outline-offset: 2px; }
.catalog-admin .catalog-theme-choice.is-selected { border-color: #1764df; background: #f6f9ff; box-shadow: 0 0 0 1px #1764df; }
.catalog-theme-choice > strong { font-size: .8rem; color: #19334f; }
.catalog-theme-choice > small { font-size: .69rem; color: #62748a; font-weight: 400; line-height: 1.45; }
.catalog-theme-mini { --mini-accent: #1764df; --mini-bg: #eff5ff; display: block; height: 100px; padding: 7px; background: var(--mini-bg); border-radius: 7px; border: 1px solid #00000008; }
.catalog-theme-mini--elegant { --mini-accent: #596848; --mini-bg: #f4f1e8; }
.catalog-theme-mini--colorful { --mini-accent: #e95027; --mini-bg: #fff3cb; }
.catalog-theme-mini > i { display: block; height: 24px; background: var(--mini-accent); border-radius: 4px; }
.catalog-theme-mini > span { display: flex; gap: 5px; height: 41px; margin: 6px 0; }
.catalog-theme-mini b { flex: 1; background: white; border-radius: 4px; border-bottom: 5px solid var(--mini-accent); }
.catalog-theme-mini > em { display: block; width: 65%; height: 8px; border-radius: 3px; background: var(--mini-accent); opacity: .55; }
.catalog-theme-choice__check { font-size: .66rem; display: flex; align-items: center; gap: 5px; color: #1764df; visibility: hidden; }
.catalog-theme-choice__check svg { width: 13px; height: 13px; }
.catalog-theme-choice.is-selected .catalog-theme-choice__check { visibility: visible; }
/* Product preparation: fixed compact controls and a much larger scrollable grid. */
.catalog-preparation-dialog { font-family: 'Segoe UI', Roboto, Arial, sans-serif; width: min(1380px, 96vw); height: min(850px, 94dvh); max-height: 94dvh; border-radius: 18px; }
.catalog-preparation-header { padding: 16px 22px 12px; flex: none; }
.catalog-preparation-header h2 { font-size: 1.2rem; font-weight: 750; }
.catalog-preparation-header p { font-size: .78rem; font-weight: 400; margin-top: 4px; }
.catalog-preparation-close { width: 34px; height: 34px; }
.catalog-preparation-kpis { display: flex; gap: 18px; padding: 0 22px 12px; flex: none; }
.catalog-preparation-kpis article { display: flex; padding: 5px 0; border: 0; background: transparent; gap: 8px; border-radius: 0; }
.catalog-preparation-kpis article > svg { width: 18px; height: 18px; }
.catalog-preparation-kpis article div { display: flex; align-items: baseline; gap: 8px; }
.catalog-preparation-kpis article span { font-size: .74rem; font-weight: 500; }
.catalog-preparation-kpis article strong { font-size: 1rem; font-weight: 750; }
.catalog-preparation-filters { grid-template-columns: minmax(230px, 1.2fr) minmax(0, 2fr); align-items: end; padding: 12px 22px; gap: 14px; flex: none; border-bottom: 1px solid #e4ebf3; }
.catalog-preparation-search { gap: 6px; }
.catalog-preparation-search strong { font-size: .73rem; font-weight: 650; }
.catalog-preparation-search input { height: 38px; font-size: .82rem; }
.catalog-preparation-filtergrid { gap: 10px; }
.catalog-preparation-filtergrid label { font-size: .72rem; font-weight: 650; gap: 6px; }
.catalog-preparation-filtergrid select { height: 40px; font-size: .8rem; padding: 0 8px; }
.catalog-preparation-bar { padding: 10px 22px; font-size: .78rem; flex: none; border: 0; }
.catalog-preparation-bar strong, .catalog-preparation-bar > div span { font-weight: 650; }
.catalog-preparation-bar button { font-size: .71rem; padding: 7px 10px; }
.catalog-preparation-scroll { min-height: 0; padding: 8px 22px 18px; background: #f7f9fc; }
.catalog-preparation-products { gap: 10px; }
.catalog-preparation-product { grid-template-columns: 18px 60px minmax(0, 1fr); gap: 10px; padding: 11px; border-radius: 11px; }
.catalog-preparation-product__media { width: 60px; height: 65px; border-radius: 8px; background: #f4f7fb; }
.catalog-preparation-product__copy { gap: 6px; }
.catalog-preparation-product__copy > strong { font-size: .82rem; font-weight: 650; line-height: 1.4; }
.catalog-preparation-product__copy small { font-size: .69rem; font-weight: 400; }
.catalog-preparation-product__copy b { font-size: .8rem; font-weight: 750; }
.catalog-preparation-product__copy span { font-size: .68rem; font-weight: 650; }
.catalog-preparation-footer { flex: none; padding: 12px 22px; gap: 12px; }
.catalog-preparation-footer > span { font-size: .75rem; font-weight: 400; }
.catalog-preparation-footer button { padding: 11px 16px; font-size: .8rem; font-weight: 650; border-radius: 9px; }
.catalog-preview-dialog { font-family: 'Segoe UI', Roboto, Arial, sans-serif; }
@media (max-width: 1100px) {
  .catalog-admin .catalog-grid--045 { grid-template-columns: 1fr; }
  .catalog-preparation-filters { grid-template-columns: 1fr; gap: 10px; }
  .catalog-preparation-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-admin .catalog-loading { padding: 12px; }
  .catalog-admin .catalog-grid--045 .catalog-panel { padding: 16px; }
  .catalog-admin .catalog-stats--enhanced { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .catalog-admin .catalog-stat-card__icon { display: none; }
  .catalog-admin .catalog-stats--enhanced .catalog-stat-card { padding: 12px 9px; }
  .catalog-admin .catalog-stats--enhanced .catalog-stat-card small { font-size: .7rem !important; }
  .catalog-admin .catalog-stats--enhanced .catalog-stat-card strong { font-size: 1.3rem !important; }
  .catalog-admin .catalog-stats--enhanced .catalog-stat-card--status strong { font-size: .78rem !important; overflow-wrap: anywhere; }
  .catalog-admin .catalog-stats--enhanced .catalog-stat-card span { font-size: .65rem; }
  .catalog-admin .catalog-logo-layout--company { grid-template-columns: 110px minmax(0, 1fr); }
  .catalog-admin .catalog-theme-choices { gap: 7px; }
  .catalog-admin .catalog-theme-choice { padding: 7px; }
  .catalog-theme-mini { height: 85px; padding: 5px; }
  .catalog-theme-mini > span { height: 28px; }
  .catalog-theme-choice > strong { font-size: .71rem; }
  .catalog-theme-choice > small { font-size: .63rem; }
  .catalog-theme-choice__check { font-size: .58rem; }
  .catalog-preparation-overlay { padding: 8px; }
  .catalog-preparation-dialog { width: 100%; height: 96dvh; max-height: 96dvh; border-radius: 14px; }
  .catalog-preparation-header, .catalog-preparation-filters, .catalog-preparation-bar,
  .catalog-preparation-scroll, .catalog-preparation-footer { padding-left: 12px; padding-right: 12px; }
  .catalog-preparation-kpis { padding: 0 12px 8px; gap: 12px; justify-content: space-between; }
  .catalog-preparation-kpis article span { font-size: .66rem; }
  .catalog-preparation-kpis article div { gap: 5px; }
  .catalog-preparation-filtergrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-preparation-bar { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .catalog-preparation-bar > div { gap: 6px; }
  .catalog-preparation-products { grid-template-columns: 1fr; }
  .catalog-preparation-footer { flex-direction: column; align-items: stretch; gap: 8px; }
  .catalog-preparation-footer > span { max-width: none; }
  .catalog-preparation-footer > div { display: flex; }
  .catalog-preparation-footer > div button { flex: 1; }
}
.catalog-admin .catalog-grid--045 + .catalog-actions--dock { backdrop-filter: none; }
@media (max-width: 760px) {
  .catalog-admin .catalog-grid--045 + .catalog-actions--dock { position: static; align-items: stretch; }
}
