:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-control: 7px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --topbar-search-max-desktop: 760px;
  --theme-header-bg: rgba(15, 23, 42, 0.92);
  --theme-header-text: #ffffff;
  --theme-header-link: #cbd5e1;
  --theme-header-link-hover: #ffffff;
  --theme-footer-bg: #ffffff;
  --theme-footer-text: #0f172a;
  --theme-footer-muted: #64748b;
  --theme-footer-border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #e8f0ff 0%, var(--bg) 35%);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 22px auto 40px; padding: 0 20px; }
.home-section {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 0;
  margin-bottom: 18px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  box-sizing: border-box;
  overflow: hidden;
}
.home-section:not(:has(> .home-banners)):not(:has(> .home-banners-layout)) {
  padding-top: 14px;
  padding-bottom: 14px;
}
.home-section:has(.product-grid),
.home-section:has(.featured-products-carousel),
.home-section.category-products-section,
.home-section-heading + .home-section.category-products-section,
.home-section-heading + .similar-products-section,
.similar-products-section {
  background: transparent;
}
.category-products-section .category-page-main,
.category-products-section .category-products-results {
  background: transparent;
}
.home-section-heading {
  background: var(--panel);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: none;
  padding: 10px 14px;
  margin-bottom: 0;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  box-sizing: border-box;
}
.home-section-heading:not(:has(+ .home-section)):not(:has(+ .similar-products-section)) {
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.home-section-heading h1,
.home-section-heading h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.home-section-heading h1 {
  font-size: 1.05rem;
}
.home-section-heading .breadcrumb {
  margin: 0 0 6px;
}
.home-section-heading .hint {
  margin: 8px 0 0;
}
.home-section-heading + .home-section,
.home-section-heading + .similar-products-section {
  margin-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.home-section > .home-banners {
  width: 100%;
}
.home-banners {
  margin: 0;
  width: 100%;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--theme-header-bg);
  backdrop-filter: blur(10px);
  color: var(--theme-header-text);
  padding: 10px 0 12px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.35);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.topbar-row {
  display: flex;
  align-items: center;
  width: 100%;
}
.topbar-row--meta {
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.topbar-meta-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  gap: 12px;
}
.topbar-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
}
.topbar-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}
.topbar-mobile-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #e2e8f0;
  border-radius: 1px;
}
.topbar-mobile-drawer {
  display: none;
}
@media (min-width: 881px) {
  .topbar-mobile-drawer {
    display: none !important;
  }
}
@media (max-width: 880px) {
  .topbar-meta-desktop {
    display: none !important;
  }
  .topbar-row--meta {
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
  }
  .topbar-meta-left:has(.social-links) {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .topbar-meta-left:has(.social-links) .social-links-header {
    flex-wrap: nowrap;
  }
  .topbar-mobile-toggle {
    display: inline-flex;
  }
  .topbar-mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    pointer-events: none;
    visibility: hidden;
  }
  .topbar-mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
  }
  .topbar-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.5);
    opacity: 0;
    transition: opacity 0.22s ease;
  }
  .topbar-mobile-drawer.is-open .topbar-mobile-drawer-backdrop {
    opacity: 1;
  }
  .topbar-mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 92vw);
    max-width: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .topbar-mobile-drawer.is-open .topbar-mobile-drawer-panel {
    transform: translateX(0);
  }
  .topbar-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .topbar-mobile-drawer-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
  }
  .topbar-mobile-drawer-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    border-radius: var(--radius-control);
  }
  .topbar-mobile-drawer-close:hover {
    background: #f1f5f9;
    color: var(--text);
  }
  .topbar-mobile-drawer-body {
    padding: 12px 0 24px;
    overflow-y: auto;
    flex: 1;
  }
  .topbar-mobile-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--border);
  }
  .topbar-mobile-drawer-user .user-avatar-img {
    border: 2px solid var(--border);
    flex-shrink: 0;
  }
  .topbar-mobile-drawer-user-name {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
    word-break: break-word;
  }
  .topbar-mobile-drawer-nav,
  .topbar-mobile-drawer-social {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
  }
  .topbar-mobile-drawer-social {
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .topbar-mobile-drawer-section {
    padding: 10px 16px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
  .topbar-mobile-drawer-link {
    display: block;
    padding: 12px 16px;
    color: var(--text) !important;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
  }
  .topbar-mobile-drawer-link:hover {
    background: #f8fafc;
    text-decoration: none !important;
  }
  .topbar-mobile-drawer-link--accent {
    color: var(--primary) !important;
    font-weight: 600;
  }
  .topbar-mobile-drawer-link--danger {
    color: #b91c1c !important;
    font-weight: 600;
  }
}
.topbar-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.topbar-meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}
.topbar-meta-link {
  color: var(--theme-header-link);
  padding: 4px 2px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 500;
}
.topbar-meta-link:hover {
  color: var(--theme-header-link-hover);
  text-decoration: none;
}
.topbar-meta-link--strong {
  color: var(--theme-header-link-hover);
  font-weight: 600;
}
.topbar-row--main {
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(200px, 1fr) auto;
  column-gap: 16px;
  align-items: center;
  padding-bottom: 2px;
}
.logo {
  color: var(--theme-header-text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}
.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.brand-logo-img {
  width: auto;
  height: auto;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 3px;
  flex-shrink: 0;
  display: block;
}
.search-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
@media (min-width: 881px) {
  .topbar-search-stack {
    display: grid;
    grid-template-columns: minmax(140px, auto) minmax(260px, 1fr) auto;
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
  }
  .topbar-search-stack > .topbar-row--main {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
  }
  .topbar-search-stack > .topbar-row--trending {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
  }
  .topbar-search-stack > .topbar-row--main .search-wrap {
    max-width: var(--topbar-search-max-desktop);
    width: 100%;
    justify-self: center;
    margin: 0 auto;
  }
  .topbar-search-stack > .topbar-row--trending .topbar-trending-inner {
    max-width: var(--topbar-search-max-desktop);
    width: 100%;
    justify-self: center;
    margin: 0 auto;
    min-width: 0;
  }
}
.search-field-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  border: none;
  border-radius: var(--radius-control);
  padding: 4px 10px 4px 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.15s ease;
}
.search-field-shell:focus-within {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22), 0 2px 8px rgba(15, 23, 42, 0.1);
}
.search-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  pointer-events: none;
}
.search-field-icon svg {
  display: block;
}
.topbar-favorites-wrap {
  justify-self: end;
  display: flex;
  align-items: center;
}
.social-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.social-links-header {
  gap: 14px;
  margin: 0;
  padding: 0;
}
.social-links-header .social-icon-link:hover {
  opacity: 0.88;
  filter: brightness(1.08);
}
.social-links-footer .social-icon-link {
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.social-links-footer .social-icon-link:hover {
  opacity: 0.88;
  border-color: #cbd5e1;
}
.social-links-mobile {
  gap: 12px;
  padding: 4px 0 8px;
}
.social-links-mobile .social-icon-link {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.social-links-mobile .social-icon-link:hover {
  opacity: 0.88;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.identity-social-row {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.identity-social-row:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.identity-social-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.identity-social-name {
  font-weight: 700;
  color: var(--text);
}
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch-ui {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.toggle-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-switch-ui {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-switch-ui::after {
  transform: translateX(20px);
}
.toggle-switch-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.category-carousel-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #f8fafc;
}
.category-carousel-toggle-label {
  font-weight: 600;
  color: var(--text);
  flex: 1 1 180px;
}
.category-carousel-toggle-row .hint {
  flex: 1 1 100%;
  margin: 0;
}
.identity-social-link-label {
  display: block;
  width: 100%;
}
.identity-mail-smtp-block.is-hidden,
.identity-mail-php-hint.is-hidden {
  display: none;
}

.identity-mail-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.identity-mail-select {
  width: 100%;
  max-width: 100%;
}

.identity-mail-pass-hint {
  margin-top: -0.25rem;
}

@media (max-width: 640px) {
  .identity-mail-inline {
    grid-template-columns: 1fr;
  }
}

.identity-social-row .identity-social-color-row + .identity-social-color-row {
  margin-top: 0.5rem;
}

.identity-social-color-row {
  display: grid;
  grid-template-columns: 168px 44px 108px auto auto;
  align-items: center;
  gap: 10px 12px;
  margin-top: 4px;
  width: 100%;
}
.identity-social-color-label-wrap {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  min-height: 38px;
  display: flex;
  align-items: center;
}
.identity-social-color-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.identity-social-preview-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}
.identity-social-preview-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.identity-social-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
}
.identity-social-preview .social-icon {
  width: 1.35rem;
  height: 1.35rem;
}
@media (max-width: 720px) {
  .identity-social-color-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .identity-social-color-label-wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
  }
}
.identity-social-row.is-hidden-social {
  opacity: 0.72;
}
.favorites-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  transition: 0.2s ease;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.favorites-link:hover {
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
  color: #fff;
}
.favorites-link--guest .favorites-heart {
  opacity: 0.85;
}
.favorites-label {
  display: inline;
}
@media (max-width: 640px) {
  .favorites-label {
    display: none;
  }
}
.favorites-heart {
  color: #fda4af;
  font-size: 1rem;
  line-height: 1;
}
.favorites-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
}
.topbar-row--main.topbar-row--trending {
  padding-bottom: 0;
}
.topbar-row--trending {
  margin-top: 8px;
  padding-top: 0;
  font-size: 0.8rem;
  background: transparent;
}
.topbar-trending-spacer {
  display: block;
  min-width: 0;
  pointer-events: none;
}
.topbar-trending-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.trending-chip {
  flex-shrink: 0;
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #e2e8f0 !important;
  font-size: 0.82rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.trending-chip:hover {
  background: transparent;
  color: #fff !important;
  text-decoration: none !important;
}
.user-menu-wrap {
  position: relative;
}
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: none;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: min(220px, 42vw);
}
.user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
}
.user-menu-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.hint {
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.45;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  margin: 6px 0;
}
.radio-row input[type="radio"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}
.admin-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.admin-shortcut {
  display: inline-block;
  padding: 10px 14px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff !important;
  border-radius: var(--radius-control);
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: var(--shadow);
}
.admin-shortcut:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  text-decoration: none !important;
}
.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.45);
}
.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  margin-right: 4px;
}
.burger-icon span {
  display: block;
  height: 2px;
  background: #e2e8f0;
  border-radius: 1px;
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.user-menu-wrap.is-open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-menu-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.user-menu-dropdown a:hover {
  background: #f1f5f9;
  text-decoration: none;
}
.user-menu-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--border);
}
.user-menu-section {
  display: block;
  padding: 6px 12px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-avatar-row { margin-bottom: 16px; }
.account-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}
.avatar-preview-wrap img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 8px;
  border: 2px solid var(--border);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not(.search-field-input):not(.admin-list-search-input):not(.identity-social-color-text):not(.identity-social-color-picker):not(.identity-theme-color-text),
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--text);
}
.identity-form .identity-social-row .identity-social-link-input {
  width: 100%;
  display: block;
  box-sizing: border-box;
}
.identity-form .identity-social-color-row input.identity-social-color-picker {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 38px;
  padding: 2px;
  flex: 0 0 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.identity-form .identity-social-color-row input.identity-social-color-text {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  flex: 0 0 108px;
  margin: 0;
}
.identity-form .identity-social-color-row button.identity-social-color-reset {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}
.identity-form .identity-social-color-row button.identity-social-color-reset:hover {
  background: #f1f5f9;
  color: var(--text);
}
.identity-theme-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.identity-theme-group {
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
}
.identity-theme-group-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.identity-subsection-title {
  margin-top: 20px;
}
.identity-auth-hero-hint {
  margin-bottom: 4px;
}
.identity-theme-color-row {
  display: grid;
  grid-template-columns: 168px 44px 108px auto 38px;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}
.identity-theme-color-row:last-child {
  margin-bottom: 0;
}
.identity-theme-color-label-wrap {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  min-height: 38px;
  display: flex;
  align-items: center;
}
.identity-theme-color-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.identity-form .identity-theme-color-row input.identity-theme-color-picker {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 38px;
  padding: 2px;
  flex: 0 0 44px;
}
.identity-form .identity-theme-color-row input.identity-theme-color-text {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  flex: 0 0 108px;
  margin: 0;
}
.identity-form .identity-theme-color-row button.identity-theme-color-reset {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
}
.identity-form .identity-theme-color-row button.identity-theme-color-reset:hover {
  background: #f1f5f9;
  color: var(--text);
}
.identity-theme-swatch {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .identity-theme-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .identity-theme-color-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .identity-theme-color-label-wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
  }
}
.search-wrap .search-field-shell input.search-field-input {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 8px 8px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-wrap .search-field-shell input.search-field-input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
textarea { min-height: 110px; resize: vertical; }
#autocomplete-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow);
  z-index: 15;
}
#autocomplete-box:empty {
  display: none;
}
#autocomplete-box a { display: block; padding: 10px 12px; color: var(--text); }
#autocomplete-box a:hover { background: #f8fafc; text-decoration: none; }
#autocomplete-box .autocomplete-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
#autocomplete-box .autocomplete-more {
  font-weight: 600;
  color: var(--primary);
  border-top: 1px solid var(--border);
}
#autocomplete-box .autocomplete-more:hover {
  background: #eff6ff;
}
h1, h2 { margin: 12px 0 14px; }
:root {
  --home-banner-height: calc(clamp(180px, 28vw, 360px) - 120px);
}
.home-banners-layout {
  display: block;
}
.banners-carousel-shell {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}
.banners-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.banners-carousel::-webkit-scrollbar { display: none; }
.banners-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 64px;
  padding: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.55);
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, background-color .2s ease;
}
.banners-nav-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}
.banners-nav-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}
.home-banners:hover .banners-nav:not(:disabled),
.home-banners:focus-within .banners-nav:not(:disabled) {
  opacity: 1;
  visibility: visible;
}
.home-banners .banners-nav:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.72);
}
.banners-nav:disabled {
  opacity: 0;
  visibility: hidden;
  cursor: default;
}
@media (hover: none) {
  .home-banners .banners-nav:not(:disabled) {
    opacity: 1;
    visibility: visible;
  }
}
.banners-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  pointer-events: auto;
}
.banners-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
}
.banners-dot.is-active {
  background: #fff;
}
.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  display: block;
}
.banner-slide picture {
  display: block;
}
.banner-slide img {
  width: 100%;
  height: var(--home-banner-height);
  object-fit: cover;
  display: block;
}
.home-banners-static {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-banner-static-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.home-banner-static-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 980px) {
  .home-banners-layout.has-statics {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 12px;
    align-items: stretch;
  }
  .home-banners-layout.has-statics .home-banners {
    min-width: 0;
  }
  .home-banners-layout.has-statics .home-banners-static {
    margin-top: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .home-banners-layout.has-statics .home-banner-static-item img {
    height: calc((var(--home-banner-height) - 10px) / 2);
  }
}
.banners-carousel-shell--peek .banners-carousel {
  gap: 12px;
}
.banners-carousel-shell--peek .banner-slide {
  flex: 0 0 min(88%, calc(100% - 48px));
  scroll-snap-align: start;
}
.home-banners.banners-controls-arrows .banners-dots,
.home-banners.banners-controls-none .banners-dots {
  display: none !important;
}
.home-banners.banners-controls-dots .banners-nav,
.home-banners.banners-controls-none .banners-nav {
  display: none !important;
}
.categories-carousel-shell,
.collections-carousel-shell,
.stores-carousel-shell {
  position: relative;
}
.categories-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.categories-carousel::-webkit-scrollbar { display: none; }
.categories-nav,
.collections-nav,
.stores-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 52px;
  padding: 0;
  border-radius: 0;
  background: rgba(71, 85, 105, 0.16);
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transition: background-color .2s ease, color .2s ease;
}
.categories-nav-prev,
.collections-nav-prev,
.stores-nav-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}
.categories-nav-next,
.collections-nav-next,
.stores-nav-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}
.categories-carousel-shell:hover .categories-nav:not(:disabled),
.categories-carousel-shell:focus-within .categories-nav:not(:disabled),
.collections-carousel-shell:hover .collections-nav:not(:disabled),
.collections-carousel-shell:focus-within .collections-nav:not(:disabled),
.stores-carousel-shell:hover .stores-nav:not(:disabled),
.stores-carousel-shell:focus-within .stores-nav:not(:disabled),
.categories-nav:hover:not(:disabled),
.collections-nav:hover:not(:disabled),
.stores-nav:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}
.categories-nav:disabled,
.collections-nav:disabled,
.stores-nav:disabled {
  opacity: 0.3;
  cursor: default;
}
.categories-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 14px;
}
.categories-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
}
.categories-dot.is-active {
  background: #2563eb;
}
.collections-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.collections-carousel::-webkit-scrollbar { display: none; }
.collections-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 14px;
}
.collections-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
}
.collections-dot.is-active {
  background: #2563eb;
}
.stores-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.stores-carousel::-webkit-scrollbar { display: none; }
.stores-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 14px;
}
.stores-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
}
.stores-dot.is-active {
  background: #2563eb;
}
.featured-products-carousel-shell {
  position: relative;
  container-type: inline-size;
  container-name: featured-products;
}
.featured-products-carousel {
  display: flex;
  gap: var(--product-grid-gap, 12px);
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.featured-products-carousel::-webkit-scrollbar {
  display: none;
}
.featured-products-carousel-item {
  --product-grid-cols: 2;
  flex: 0 0 calc((100% - (var(--product-grid-cols) - 1) * var(--product-grid-gap, 12px)) / var(--product-grid-cols));
  min-width: calc((100% - (var(--product-grid-cols) - 1) * var(--product-grid-gap, 12px)) / var(--product-grid-cols));
  max-width: calc((100% - (var(--product-grid-cols) - 1) * var(--product-grid-gap, 12px)) / var(--product-grid-cols));
  scroll-snap-align: start;
}
.featured-products-carousel-item .card-product {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.featured-products-carousel-item .card-link {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
@media (min-width: 881px) {
  @container featured-products (min-width: 390px) {
    .featured-products-carousel-item { --product-grid-cols: 2; }
  }
  @container featured-products (min-width: 560px) {
    .featured-products-carousel-item { --product-grid-cols: 3; }
  }
  @container featured-products (min-width: 730px) {
    .featured-products-carousel-item { --product-grid-cols: 4; }
  }
  @container featured-products (min-width: 900px) {
    .featured-products-carousel-item { --product-grid-cols: 5; }
  }
  @container featured-products (min-width: 1070px) {
    .featured-products-carousel-item { --product-grid-cols: 6; }
  }
}
.featured-products-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 52px;
  padding: 0;
  border-radius: 0;
  background: rgba(71, 85, 105, 0.16);
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: background-color .2s ease, color .2s ease;
}
.featured-products-nav-prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}
.featured-products-nav-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}
.featured-products-carousel-shell:hover .featured-products-nav:not(:disabled),
.featured-products-carousel-shell:focus-within .featured-products-nav:not(:disabled),
.featured-products-nav:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}
.featured-products-nav:disabled {
  opacity: 0.3;
  cursor: default;
}
.featured-products-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
  margin-bottom: 14px;
}
.featured-products-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}
.featured-products-dot.is-active {
  background: #2563eb;
}
.home-featured-empty {
  margin: 0 14px 14px;
}
@media (min-width: 1140px) {
  .featured-products-carousel-item {
    --product-grid-cols: 6;
  }
}
.store-chip {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .18s ease;
}
.store-chip:hover { background: #eff6ff; text-decoration: none; }
.store-chip.is-active {
  background: #eff6ff;
}
.store-chip img {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #dbeafe;
  box-shadow: var(--shadow);
  background: #fff;
}
.store-chip span {
  color: var(--text);
  font-size: .9rem;
  text-align: center;
}
.admin-store-logo {
  width: 90px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
}
.store-logo-preview img {
  width: 120px;
  height: 70px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}
.store-color-chip {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-right: 6px;
  border: 1px solid rgba(15,23,42,.15);
}
.category-chip {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background-color .18s ease;
  text-decoration: none;
}
.category-chip:hover {
  background: #eff6ff;
  text-decoration: none;
}
.category-chip img {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #dbeafe;
  box-shadow: var(--shadow);
}
.category-chip span {
  color: var(--text);
  font-size: .9rem;
  text-align: center;
}
.category-chip:hover span {
  text-decoration: none;
}
.collection-chip {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .18s ease;
}
.collection-chip:hover {
  background: #eff6ff;
  text-decoration: none;
}
.collection-chip img {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #dbeafe;
  box-shadow: var(--shadow);
}
.collection-chip span {
  color: var(--text);
  font-size: .9rem;
  text-align: center;
}
.collection-chip:hover span {
  text-decoration: none;
}
.collection-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.collection-product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}
.collection-product-card input[type="checkbox"] {
  align-self: flex-start;
  margin: 0;
}
.collection-product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.collection-products-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-grid {
  --product-grid-gap: 12px;
  --product-card-min: 158px;
  display: grid;
  gap: var(--product-grid-gap);
  grid-template-columns: repeat(auto-fill, minmax(var(--product-card-min), 1fr));
}
@media (min-width: 1140px) {
  .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* --- Página de categoria: filtro lateral (1 col = 1 card) + 5 cards --- */
.category-page-layout {
  display: grid;
  gap: 12px;
  align-items: start;
}
@media (min-width: 1140px) {
  .category-page-layout {
    grid-template-columns: repeat(6, 1fr);
  }
  .category-filter {
    grid-column: 1;
    min-width: 0;
  }
  .category-page-main {
    grid-column: span 5;
    min-width: 0;
  }
  .category-page-main .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.category-filter {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: none;
  padding: 10px;
  min-width: 0;
}
.category-filter-title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.3;
}
.category-filter-hint {
  margin: 0 0 8px;
  font-size: 0.76rem;
  line-height: 1.35;
}
.category-filter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.category-filter-list--nested {
  margin-top: 1px;
  padding-left: calc(2px + var(--depth, 1) * 10px);
  border-left: 1px solid var(--border);
  margin-left: 6px;
}
.category-filter-item {
  margin: 0;
}
.category-filter-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text);
}
.category-filter-label:hover {
  background: rgba(148, 163, 184, 0.12);
}
.category-filter-label input[type='checkbox'] {
  margin: 1px 0 0;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--accent, #2563eb);
}
.category-filter-label span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.category-filter-actions {
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.category-filter-reset {
  width: 100%;
  font-size: 0.76rem;
  padding: 6px 8px;
}
.category-filter-submit {
  width: 100%;
  font-size: 0.76rem;
  padding: 6px 8px;
}
.category-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.category-sort-group {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.category-sort-bar .category-sort-btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  height: 34px;
  white-space: nowrap;
}
.category-sort-bar .category-sort-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.category-sort-bar .category-sort-btn.is-active {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: transparent;
  color: #fff;
}
.category-sort-bar .category-sort-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 7px 28px 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  min-width: 88px;
  height: 34px;
  line-height: 1.2;
  flex: 0 0 auto;
}
.category-sort-bar .category-sort-select:hover {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}
.category-sort-bar .category-sort-select option {
  color: var(--text);
  font-weight: 600;
}
.category-pagination-wrap {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  flex: 1 1 auto;
}
.category-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.category-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
}
.category-page-btn:hover:not(:disabled):not([aria-disabled="true"]) {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.category-page-btn.is-active {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: transparent;
  color: #fff;
}
a.category-page-btn {
  text-decoration: none;
}
.admin-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 1rem 0 0.5rem;
}
.admin-list-search {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-list-search-shell {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-list-search-shell:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.admin-list-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 8px 4px 8px 12px;
  border: none;
  background: transparent;
  font: inherit;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.admin-list-search-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}
.admin-list-search-input::-webkit-search-decoration,
.admin-list-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.admin-list-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.admin-list-search-submit:hover {
  background: transparent;
  color: var(--accent, #2563eb);
}
.admin-list-search-submit:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: -2px;
}
.admin-list-search-submit svg {
  display: block;
}
.admin-list-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.admin-list-per-page select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font: inherit;
}
.admin-list-clear-search {
  align-self: center;
  font-size: 0.9rem;
}
.admin-list-meta {
  margin: 0 0 0.75rem;
}
.admin-list-pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}
.admin-list-pagination {
  justify-content: center;
  gap: 6px;
}
.admin-list-pagination .category-page-btn {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text);
  font-weight: 500;
}
.admin-list-pagination .category-page-btn:hover:not([aria-disabled="true"]) {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text);
}
.admin-list-pagination .category-page-btn.is-active {
  background: rgba(219, 234, 254, 0.85);
  border-color: rgba(147, 197, 253, 0.65);
  color: #1d4ed8;
  font-weight: 600;
}
.admin-list-pagination .category-page-btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
}
.admin-list-pagination .category-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 32px;
  padding: 0 4px;
  line-height: 1;
}
.category-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.category-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 32px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0 4px;
  line-height: 1;
  user-select: none;
  vertical-align: middle;
}
.category-filter-active {
  margin: 0 0 10px;
  font-size: 0.82rem;
}
.category-page-main {
  min-width: 0;
}
.category-products-results {
  transition: opacity 0.15s ease;
}
.category-products-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* --- Minhas listas (acordeão) --- */
.lists-create-form {
  margin-bottom: 14px;
}
.lists-create-hint {
  margin: 0 0 18px;
}
.lists-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lists-accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lists-accordion-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
}
.lists-accordion-summary::-webkit-details-marker {
  display: none;
}
.lists-accordion-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.lists-accordion-item[open] .lists-accordion-caret {
  transform: rotate(45deg);
}
.lists-accordion-name-display {
  min-width: 0;
  text-align: left;
}
.lists-accordion-name-display.is-hidden {
  display: none !important;
}
.lists-accordion-name-cell {
  grid-column: 2;
  min-width: 0;
}
.lists-accordion-rename-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.lists-accordion-rename-form.is-hidden {
  display: none !important;
}
.lists-accordion-rename-form input[type="text"] {
  flex: 1 1 160px;
  min-width: 120px;
}
.lists-accordion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.lists-delete-form {
  display: inline;
  margin: 0;
}
.btn-text {
  background: none;
  border: 0;
  padding: 4px 6px;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-text:hover {
  color: #1d4ed8;
}
.btn-text-danger {
  color: #b91c1c;
}
.btn-text-danger:hover {
  color: #991b1b;
}
.btn-muted-inline {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 6px 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.lists-accordion-body {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.lists-product-grid {
  margin-top: 4px;
}
.lists-product-cell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.lists-product-cell .card-product {
  flex: 1 1 auto;
}
.lists-product-cell .card-link {
  flex: 1 1 auto;
}
.lists-remove-product-form {
  margin: 0;
  padding-top: 8px;
}
.lists-remove-btn {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.lists-remove-btn:hover {
  background: #fef2f2;
}
.lists-no-products {
  margin: 4px 0 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-product {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.card-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
}
.card:not(.card-product):hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
}
.card img { width: 100%; height: 148px; object-fit: cover; border-radius: 7px; margin-bottom: 6px; }
.card h3 {
  margin: 6px 0 4px;
  font-size: 0.92rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.card-store {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-sales {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-word;
}
.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-link:hover {
  text-decoration: none;
}
.card-product .card-link {
  padding-bottom: 0;
}
.card-store-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0 0 10px 10px;
  background: #f97316;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease;
}
.card-product:hover .card-store-cta,
.card-product:focus-within .card-store-cta {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.card-store-cta:hover {
  background: #ea580c;
  color: #fff;
  text-decoration: none;
}
@media (hover: none) {
  .card-product .card-store-cta {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.product-detail-gallery {
  align-self: start;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  overflow: hidden;
}
.product-detail-gallery .gallery:last-child {
  margin-bottom: 0;
}
.product-detail-gallery .product-detail-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border: none;
  border-radius: 0;
}
.product-detail-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}
/* Puxa bloco (miniaturas + botões) para o rodapé da coluna; o espaço flex fica acima das fotos. */
.product-detail-thumbs-wrap {
  margin-top: auto;
  margin-bottom: 0;
  transform: translateY(-8px);
}
.product-detail-thumbs-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.product-detail-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 0;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.product-detail-thumb {
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  line-height: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-detail-thumb:hover {
  border-color: #93c5fd;
}
.product-detail-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.product-detail-thumb img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.product-detail-thumbs-wrap--mobile {
  display: none;
}
.product-detail-column {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}
.product-detail-info {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}
.product-detail-thumbs-wrap {
  min-width: 0;
  max-width: 100%;
}
.product-detail-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: auto;
  padding-top: 0;
  width: 100%;
  transform: translateY(-8px);
}
/* Com carrossel: sem auto aqui — ~5px entre a última miniatura e os botões */
.product-detail-thumbs-wrap + .product-detail-actions {
  margin-top: 5px;
}
.product-detail-actions .product-detail-action-btn {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}
.product-detail-actions .product-detail-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.product-detail-actions .product-detail-action-btn-success {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}
.product-detail-actions .product-detail-action-btn-success:hover {
  background: linear-gradient(180deg, #16a34a, #15803d);
  text-decoration: none;
}
.product-detail-actions .product-detail-action-btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
}
.product-detail-actions .product-detail-action-btn-danger:hover {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  text-decoration: none;
}
.product-price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.product-price-label {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px 9px;
}
.product-warning-box {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: .9rem;
  line-height: 1.4;
}
.product-detail-accordion-wrap {
  margin: 22px 0 28px;
}
.product-detail-related {
  margin-bottom: 18px;
}
.product-detail-related .home-section-heading {
  margin-bottom: 0;
}
.product-detail-related .similar-products-section {
  margin-bottom: 0;
}
.container > .breadcrumb,
.container > .product-detail,
.container > .product-detail-accordion-wrap {
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  box-sizing: border-box;
}
.product-detail-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.product-detail-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #f8fafc;
  color: var(--text);
  font-family: inherit;
  list-style: none;
}
.product-detail-details summary::-webkit-details-marker {
  display: none;
}
.product-detail-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.product-detail-details[open] summary {
  background: #eff6ff;
}
.product-detail-details[open] summary::after {
  transform: rotate(45deg);
}
.product-detail-accordion-body {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}
.similar-products-section {
  background: transparent;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 14px 0;
  margin-bottom: 18px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  box-sizing: border-box;
  overflow: hidden;
}
.home-section-heading .similar-products-hint {
  margin: 6px 0 0;
}
.gallery { width: 100%; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--border); }
.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border: 0;
  border-radius: var(--radius-control);
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  text-decoration: none;
}
.flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.flash.success { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.flash.error { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.form-box, .form-inline {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 14px;
}
.form-box { max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.form-box-full { max-width: none; width: 100%; }
.form-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; font-size: .95rem; }
th { background: #f8fafc; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 18px;
}
.table-wrap table {
  margin-bottom: 0;
  min-width: 560px;
}
.admin-product-name {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-chart-card .table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0;
}
.dashboard-ranking-table {
  min-width: 640px;
}
ul { padding-left: 18px; }
.breadcrumb { color: var(--muted); margin-bottom: 12px; font-size: .92rem; }
.breadcrumb a { color: var(--primary); }
select.select-categories {
  min-height: 140px;
  padding: 8px 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
}
.stats div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  font-weight: 600;
}
.dashboard-kpis div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dashboard-kpis strong {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.dashboard-kpis span {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.dashboard-kpi-note {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.dashboard-ranking-table td:last-child,
.dashboard-ranking-table th:last-child {
  white-space: nowrap;
  font-weight: 700;
  text-align: right;
}
.dashboard-ranking-table td:first-child,
.dashboard-ranking-table th:first-child {
  width: 48px;
  color: var(--muted);
  font-weight: 700;
}
.dashboard-ranking-link {
  word-break: break-all;
}
.dashboard-charts {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  min-width: 0;
}
.dashboard-chart-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  min-width: 0;
  max-width: 100%;
}
.dashboard-chart-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.dashboard-chart-card canvas {
  width: 100%;
  height: 320px;
  display: block;
}
.chart-scroll-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.clicks-stores-ranking {
  margin-top: 14px;
}
.clicks-recent-table td:first-child {
  width: 48px;
  color: var(--muted);
  font-weight: 700;
}
.clicks-recent-table td:last-child {
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}
.dashboard-legacy-list {
  margin-top: 12px;
}
.admin-fab-menu-btn {
  position: fixed;
  left: 14px;
  top: 147px;
  transform: translateY(30px);
  z-index: 130;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.45);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.admin-fab-menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #e2e8f0;
}
.admin-fab-menu {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(-120%);
  z-index: 129;
  width: min(270px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
}
.admin-fab-menu.is-open {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  visibility: visible;
}
.admin-fab-menu h2 {
  margin: 0 0 10px;
  font-size: .95rem;
}
.admin-fab-menu .admin-shortcuts {
  margin: 0;
}
.admin-fab-menu .admin-shortcut {
  width: 100%;
  text-align: left;
}
#preview-imagens img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 6px;
  border: 1px solid var(--border);
}
.admin-banner-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.admin-banner-toolbar button {
  margin: 0;
}
.admin-banner-thumb {
  width: 120px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.admin-banner-thumb-mobile {
  width: 58px;
  margin-left: 6px;
}
#banner-preview img,
#banner-mobile-preview img,
#banner-edit-mobile-preview img,
#banner-edit-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
button.linklike {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
button.linklike:hover {
  color: var(--primary-dark);
}
.identity-logo-preview img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}
.identity-favicon-preview img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}
.form-box.identity-form {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.identity-form .identity-accordion {
  width: 100%;
  margin-bottom: 0;
}
.accordion.identity-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--panel);
}
.accordion-item + .accordion-item {
  border-top: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.accordion-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion-item.is-open .accordion-trigger {
  background: #eff6ff;
}
.accordion-item.is-open .accordion-trigger::after {
  transform: rotate(45deg);
}
.accordion-panel {
  padding: 14px 16px 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.accordion-item.is-open .accordion-panel {
  display: flex;
}
.site-footer {
  border-top: 1px solid var(--theme-footer-border);
  background: var(--theme-footer-bg);
  margin-top: 24px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer-brand {
  margin: 0;
  font-weight: 700;
  color: var(--theme-footer-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-footer-brand:hover {
  text-decoration: none;
}
.site-footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}
.site-footer-credit {
  flex: 1 1 100%;
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--theme-footer-muted);
}
.site-footer-credit .site-footer-belinn {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.site-footer-credit .site-footer-belinn:hover {
  color: #facc15;
  text-decoration: none;
}
.site-footer-copy {
  flex: 1 1 100%;
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--theme-footer-muted);
}
.push-prompt {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 140;
  max-width: 420px;
  margin: 0 auto;
}
.push-prompt-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.push-prompt-text {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  font-size: 0.92rem;
}
.push-prompt-text strong {
  font-size: 0.98rem;
}
.push-prompt-text span {
  color: var(--muted);
}
.push-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.push-prompt-btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  cursor: pointer;
}
.push-prompt-btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.push-prompt-btn--ghost {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--border);
}
.pwa-install-prompt {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 106px;
  z-index: 141;
  max-width: 420px;
  margin: 0 auto;
}
.pwa-install-prompt-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.pwa-install-prompt-text {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  font-size: 0.92rem;
}
.pwa-install-prompt-text strong {
  font-size: 0.98rem;
}
.pwa-install-prompt-text span {
  color: var(--muted);
}
.pwa-install-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 880px) {
  .category-sort-bar {
    align-items: stretch;
  }
  .category-sort-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }
  .category-sort-bar .category-sort-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .category-sort-bar .category-sort-select {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .topbar-row--main:not(.topbar-row--trending) {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
    align-items: center;
  }
  .logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .brand-name {
    max-width: none;
  }
  .topbar-favorites-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    width: 100%;
  }
  .topbar-row--trending {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding-top: 0;
  }
  .topbar-row--trending .topbar-trending-spacer {
    display: none;
  }
  .categories-nav {
    display: none;
  }
  .stores-nav {
    display: none;
  }
  .home-banners:not(.banners-controls-arrows):not(.banners-controls-both) .banners-nav {
    display: none !important;
  }
  .admin-fab-menu-btn,
  .admin-fab-menu,
  .admin-fab-menu.is-open {
    display: none !important;
    visibility: hidden !important;
  }
  body {
    overflow-x: hidden;
  }
  html {
    overflow-x: hidden;
    max-width: 100%;
  }
  body[data-admin-area="1"] .container {
    min-width: 0;
    overflow-x: hidden;
  }
  body[data-admin-area="1"] .stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
  .topbar-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .site-footer-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }
  .home-section {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .home-section:not(:has(> .home-banners)) {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .push-prompt {
    bottom: 14px;
  }
  .pwa-install-prompt {
    bottom: 102px;
  }
  .home-section-heading {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .banners-nav {
    width: 34px;
    height: 52px;
    font-size: 1.35rem;
  }
  .banners-nav-prev {
    left: 0;
  }
  .banners-nav-next {
    right: 0;
  }
  .banners-dots {
    bottom: 10px;
  }
  .banner-slide img {
    height: clamp(160px, 42vw, 280px);
  }
  .topbar-trending-inner {
    gap: 4px;
  }
  .trending-chip {
    font-size: 0.62rem;
    padding: 0;
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .breadcrumb {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .container > .breadcrumb,
  .container > .product-detail,
  .container > .product-detail-accordion-wrap {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  .product-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 14px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .product-detail-gallery {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .product-detail-thumbs-wrap--mobile {
    display: block;
    flex: 0 0 auto;
    margin-top: 0;
    transform: none;
  }
  .product-detail-thumbs-wrap--desktop {
    display: none !important;
  }
  .product-detail-column {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 0;
    height: auto;
  }
  .product-detail-info {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .product-detail-thumbs-wrap {
    margin-top: 0;
  }
  .product-detail-actions {
    flex: 0 0 auto;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
  }
  .product-detail-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }
  .product-detail-thumbs-wrap,
  .product-detail-actions {
    transform: none;
  }
  .product-detail-actions {
    flex-wrap: wrap;
    padding-top: 12px;
    gap: 8px;
  }
  .product-detail-actions .product-detail-action-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .product-detail-thumbs-wrap + .product-detail-actions {
    padding-top: 0;
    margin-top: 5px;
  }
  .product-grid {
    --product-card-min: 128px;
    grid-template-columns: repeat(auto-fill, minmax(var(--product-card-min), 1fr));
    min-width: 0;
  }
  @container featured-products (min-width: 268px) {
    .featured-products-carousel-item { --product-grid-cols: 2; }
  }
  @container featured-products (min-width: 408px) {
    .featured-products-carousel-item { --product-grid-cols: 3; }
  }
  @container featured-products (min-width: 548px) {
    .featured-products-carousel-item { --product-grid-cols: 4; }
  }
  @container featured-products (min-width: 688px) {
    .featured-products-carousel-item { --product-grid-cols: 5; }
  }
  @container featured-products (min-width: 828px) {
    .featured-products-carousel-item { --product-grid-cols: 6; }
  }
  .similar-products-section {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    min-width: 0;
  }
  .product-detail-related {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .product-detail-related .home-section-heading,
  .product-detail-related .similar-products-section {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
  .product-price-wrap {
    flex-wrap: wrap;
    max-width: 100%;
  }
  .dashboard-chart-card {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .dashboard-charts {
    min-width: 0;
    max-width: 100%;
  }
  .chart-scroll-wrap,
  .dashboard-chart-card .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 0;
  }
  .chart-scroll-wrap .js-line-chart {
    width: 960px;
    min-width: 960px;
    max-width: none;
    height: 320px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 8px 6px;
    font-size: 0.84rem;
  }
  .table-wrap td {
    word-break: break-word;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}
.banner-config-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 14px 0;
}
.banner-config-fieldset legend {
  font-weight: 600;
  padding: 0 6px;
  font-size: 0.95rem;
}
.modal-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.modal-content-narrow {
  width: min(440px, 100%);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.modal-header h2 {
  margin: 0;
}
.modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 1;
  font-size: 22px;
}
.modal-content .form-box {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.product-edit-images-heading {
  margin: 18px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.product-edit-images-grid .product-edit-images-empty {
  grid-column: 1 / -1;
  margin: 0;
}
.product-edit-principal-hint {
  margin: 0 0 10px;
}
.product-edit-principal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.9rem;
  cursor: pointer;
}
.product-edit-principal-label input {
  margin: 0;
}

.auth-shell {
  min-height: 100vh;
  padding: 0;
}
.auth-shell .flash {
  max-width: 520px;
  margin: 14px auto;
}
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 7fr 3fr;
}
.auth-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.auth-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.52));
  color: #e2e8f0;
  pointer-events: none;
}
.auth-hero-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(15, 23, 42, 0.45);
}
.auth-hero-subtitle {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  color: #bfdbfe;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.4);
}
.auth-panel {
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-panel .form-box {
  max-width: none;
}
.auth-switch {
  margin: 4px 0 0;
  color: var(--muted);
}
.auth-hint {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}
.auth-forgot {
  margin: -4px 0 12px;
  font-size: 0.9rem;
}
.auth-forgot a {
  color: var(--accent, #2563eb);
}
.password-field-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-field-shell input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-toggle-btn:hover:not(:disabled) {
  color: var(--text);
  background: #f1f5f9;
}
.password-toggle-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
}
.password-toggle-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.password-toggle-icon {
  display: none;
  width: 20px;
  height: 20px;
}
.password-toggle-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}
.password-toggle-btn .password-toggle-icon--show {
  display: block;
}
.password-toggle-btn.is-revealed .password-toggle-icon--show {
  display: none;
}
.password-toggle-btn.is-revealed .password-toggle-icon--hide {
  display: block;
}
@media (max-width: 980px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    min-height: 220px;
  }
  .auth-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* Biblioteca de mídia */
.media-library-page {
  margin-top: 1rem;
}
.media-library-toolbar,
.media-library-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.media-library-folder-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}
.media-library-folder-select,
.media-library-search {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.media-library-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.media-library-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.btn-media-upload,
.btn-media-pick,
.btn-media-cancel {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.btn-media-upload {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-media-upload:hover:not(:disabled),
.btn-media-pick:hover,
.btn-media-cancel:hover {
  background: #f8fafc;
}
.btn-media-upload:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-media-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-media-pick {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent, #2563eb);
}
.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.media-library-grid--modal {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 4px;
}
.media-library-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.media-library-item:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.media-library-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}
.media-library-item-name {
  font-size: 0.78rem;
  font-weight: 600;
  word-break: break-all;
  line-height: 1.25;
}
.media-library-item-meta {
  font-size: 0.72rem;
  color: var(--muted);
}
.media-library-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.media-library-item-dl,
.media-library-item-del {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.media-library-item-dl {
  color: var(--accent, #2563eb);
  text-decoration: none;
}
.media-library-item-del {
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
}
.media-library-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 1rem;
}
.media-library-page-info {
  font-size: 0.9rem;
  color: var(--muted);
}
.media-library-empty {
  grid-column: 1 / -1;
  padding: 1rem 0;
}
.media-library-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.media-library-modal.is-open {
  display: flex;
}
.media-library-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.media-library-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}
.media-library-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.media-library-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}
.media-library-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.media-library-modal-toolbar {
  padding: 12px 18px 0;
}
.media-library-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.media-library-modal-hint {
  margin: 0;
}
.media-picker-field {
  margin: 12px 0;
}
.media-picker-field > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.media-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.media-picker-actions input[type="file"] {
  flex: 1 1 200px;
  min-width: 0;
}
.media-picker-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.media-picker-preview-img,
.media-picker-preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.media-picker-chip {
  position: relative;
  display: inline-block;
}
.media-picker-chip img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.media-picker-chip button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.platform-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.platform-lead {
  max-width: 36rem;
  margin: 0.75rem auto 1.5rem;
  color: var(--muted, #64748b);
}
.platform-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.plan-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--surface, #fff);
}
.plan-card-featured {
  border-color: var(--accent, #0f172a);
}
.account-plan-badge {
  margin-bottom: 1rem;
}
.account-upgrade-box {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.platform-store-list {
  list-style: none;
  padding: 0;
}
.master-webhook-box {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--surface-alt, #f8fafc);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.master-webhook-box input[readonly] {
  width: 100%;
  font-family: monospace;
  font-size: 0.85rem;
}
.form-hint {
  color: var(--muted, #64748b);
  font-size: 0.9rem;
  margin: 0.25rem 0 1rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
