:root {
  --bg: #fbf8fc;
  --surface: #ffffff;
  --ink: #1d1524;
  --muted: #766b80;
  --line: #e7dff0;
  --primary: #64209a;
  --primary-strong: #471073;
  --primary-rgb: 100, 32, 154;
  --purple: #64209a;
  --accent: #f3a91f;
  --accent-rgb: 243, 169, 31;
  --accent-soft: #fff1c7;
  --card-glow: #f3a91f;
  --card-glow-rgb: 243, 169, 31;
  --card-glow-intensity: 35;
  --suggestion-glow: #f3a91f;
  --suggestion-glow-rgb: 243, 169, 31;
  --suggestion-glow-intensity: 35;
  --suggestion-glow-aura-strong-alpha: 0.68;
  --suggestion-glow-aura-mid-alpha: 0.36;
  --suggestion-glow-aura-soft-alpha: 0.46;
  --suggestion-glow-ring-strong-alpha: 0.32;
  --suggestion-glow-flash-alpha: 0.72;
  --suggestion-glow-ring-alpha: 0.18;
  --suggestion-glow-alpha: 0.42;
  --suggestion-glow-ring-pulse-alpha: 0.24;
  --suggestion-glow-pulse-alpha: 0.52;
  --suggestion-glow-button-alpha: 0.2;
  --suggestion-glow-button-shadow-alpha: 0.22;
  --card-glow-border-alpha: 0.112;
  --card-glow-inner-alpha: 0.081;
  --card-glow-smoke-alpha: 0.07;
  --card-glow-outer-alpha: 0.105;
  --card-glow-wide-alpha: 0.091;
  --soft: #f3eafa;
  --warning: #fff3cf;
  --danger: #b3261e;
  --black: #100b13;
  --nav-start: #2b0a46;
  --nav-end: #100b13;
  --shadow-rgb: 62, 27, 91;
  --shadow: 0 18px 45px rgba(62, 27, 91, 0.11);
}

/* Tablet experience: iPad/Android tablets, especially seller assisted orders */
@media (min-width: 681px) and (max-width: 1100px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    background:
      radial-gradient(circle at 0 0, rgba(243, 169, 31, 0.16), transparent 26rem),
      radial-gradient(circle at 100% 8%, rgba(100, 32, 154, 0.13), transparent 24rem),
      linear-gradient(180deg, #fff, #fbf8fc 48%, #f6effa);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 130;
    height: auto;
    padding: 12px 18px;
    border-radius: 0 0 22px 22px;
    background:
      radial-gradient(circle at 92% 20%, rgba(243, 169, 31, 0.25), transparent 9rem),
      linear-gradient(135deg, #2b0a46, #100b13);
    box-shadow: 0 14px 30px rgba(22, 10, 31, 0.22);
  }

  .brand {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 12px;
    min-height: 62px;
    align-items: center;
  }

  .brand .mobile-nav-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  .brand > div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    text-align: center;
  }

  .brand .brand-mark {
    grid-column: 3;
    grid-row: 1;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #251303;
    box-shadow: 0 0 0 6px rgba(243, 169, 31, 0.12);
  }

  .brand strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.05;
  }

  .brand small {
    display: block;
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .mobile-nav-toggle {
    display: grid;
    place-items: center;
    align-content: center;
    width: 48px;
    height: 48px;
    gap: 5px;
    padding: 0;
    border: 2px solid rgba(243, 169, 31, 0.62);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 6, 19, 0.2);
  }

  .mobile-nav-toggle span {
    display: block;
    width: 23px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background: var(--accent);
    color: #241304;
    border-color: var(--accent);
  }

  .operator-box {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 170;
    display: grid;
    align-content: start;
    width: min(86vw, 620px);
    max-height: calc(100dvh - 22px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: calc(20px + env(safe-area-inset-top)) 16px 20px;
    border-radius: 0 26px 26px 0;
    background:
      radial-gradient(circle at 10% 10%, rgba(243, 169, 31, 0.2), transparent 10rem),
      linear-gradient(180deg, #2b0a46, #100b13);
    border: 1px solid rgba(243, 169, 31, 0.34);
    box-shadow: 28px 0 54px rgba(31, 13, 39, 0.38);
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.22s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav .nav-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 14px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 860;
    line-height: 1.12;
    background: rgba(255, 255, 255, 0.08);
  }

  .main-nav .nav-button.active {
    background: linear-gradient(135deg, var(--accent), #ffcf48);
    color: #221204;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .mobile-nav-open .main-nav {
    transform: translateX(0);
  }

  .mobile-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 160;
    border: 0;
    background: rgba(16, 11, 19, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .mobile-nav-open .mobile-nav-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .content {
    padding: 20px clamp(18px, 3vw, 28px) 86px;
  }

  .topbar {
    position: sticky;
    top: 86px;
    z-index: 28;
    align-items: center;
    gap: 14px;
    margin: -6px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(231, 223, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 14px 30px rgba(62, 27, 91, 0.11);
    backdrop-filter: blur(15px);
  }

  .topbar h1 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    line-height: 1.05;
  }

  .topbar-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .topbar-actions button,
  .topbar-actions a {
    min-height: 44px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .cart-top-button {
    min-height: 54px;
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
  }

  .hero-strip {
    min-height: 150px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 18px;
  }

  .store-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .catalog-area,
  .cart-panel,
  .editor-panel,
  .order-card,
  .analytics-card,
  .settings-grid,
  .seller-assist-card,
  .seller-clients-card,
  .seller-order-workspace,
  .seller-orders-section {
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(62, 27, 91, 0.09);
  }

  .catalog-area {
    padding: 16px;
  }

  #storeView .catalog-area > .toolbar {
    position: sticky;
    top: 176px;
    z-index: 26;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
    gap: 10px;
    align-items: end;
    margin: -16px -16px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(231, 223, 240, 0.92);
    border-radius: 18px 18px 16px 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(62, 27, 91, 0.1);
    backdrop-filter: blur(14px);
  }

  #storeView .catalog-area > .toolbar .search-field {
    min-width: 0;
  }

  #storeView .catalog-area > .toolbar input,
  #storeView .catalog-area > .toolbar select,
  input,
  select,
  textarea {
    min-height: 46px;
    border-radius: 13px;
    font-size: 0.98rem;
  }

  .tabs {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    margin: 12px -4px 18px;
    padding: 0 4px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    white-space: nowrap;
  }

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

  .product-card {
    min-height: 100%;
    padding: 13px;
    border-radius: 18px;
    gap: 9px;
    overflow-x: clip;
  }

  .product-card--offer::before,
  .product-card--custom::before,
  .product-card--featured::before,
  .product-card--showcase::before {
    top: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    transform: none;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.64rem;
    line-height: 1;
  }

  .product-image {
    height: clamp(190px, 28vw, 250px);
    border-radius: 16px;
  }

  .product-card h3 {
    min-height: 2.35em;
    font-size: 1.08rem;
    line-height: 1.16;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .price-line strong {
    font-size: 1.36rem;
  }

  .product-qty-row {
    grid-template-columns: 48px minmax(68px, 1fr) 48px;
    gap: 9px;
  }

  .product-qty-row button,
  .product-qty-row input,
  .bulk-min-button,
  .product-card .primary-button {
    min-height: 48px;
    border-radius: 14px;
  }

  .seller-negotiation-box {
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
  }

  .seller-negotiation-box > div {
    padding: 9px 10px;
  }

  .seller-negotiation-box input {
    min-height: 48px;
    font-size: 1.08rem;
  }

  .cart-panel,
  .editor-panel {
    position: static;
    padding: 16px;
  }

  .cart-items {
    max-height: 48vh;
  }

  .cart-summary .total {
    font-size: 1.18rem;
  }

  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-grid > section > .toolbar,
  #adminImagesView > .toolbar,
  #adminSourcesView .toolbar,
  .bulk-actions,
  .reports-control-grid,
  .serpapi-config-form,
  .inline-config-card,
  .backend-status,
  .bulk-selection-bar {
    padding: 12px;
    border: 1px solid rgba(231, 223, 240, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(62, 27, 91, 0.07);
  }

  .view.active > .panel-title,
  .admin-grid > section > .panel-title,
  .spaced-title {
    margin: 0 0 12px;
    padding: 13px;
    border: 1px solid rgba(231, 223, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(62, 27, 91, 0.07);
  }

  .view.active > .panel-title h2,
  .admin-grid > section > .panel-title h2 {
    font-size: 1.28rem;
    line-height: 1.1;
  }

  .settings-grid,
  .pricing-rule-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(62, 27, 91, 0.08);
  }

  table {
    min-width: 760px;
  }

  .seller-current-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
  }

  .seller-current-card strong {
    font-size: 1.44rem;
  }

  .seller-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(118px, auto));
    gap: 8px;
  }

  .seller-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .seller-stat-card,
  .seller-fund-card {
    min-height: 116px;
    padding: 13px;
  }

  .seller-stat-card strong,
  .seller-fund-card strong {
    font-size: 1.1rem;
    word-break: break-word;
  }

  .seller-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 14px;
  }

  .seller-assist-card,
  .seller-clients-card,
  .seller-order-workspace,
  .seller-orders-section {
    padding: 14px;
  }

  .seller-client-list {
    max-height: 410px;
    overflow: auto;
  }

  .seller-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .seller-flow-steps span {
    padding: 9px 8px;
    text-align: center;
    font-size: 0.78rem;
  }

  .seller-code-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }

  .seller-code-legend strong {
    grid-column: 1 / -1;
  }

  .seller-form-split,
  .seller-pricing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-margin-field,
  .seller-start-order-button {
    grid-column: 1 / -1;
  }

  .seller-start-order-button {
    min-height: 54px;
    border-radius: 16px;
    font-size: 1.04rem;
  }

  .assisted-order-mode .topbar {
    top: 86px;
    margin-bottom: 10px;
    border-color: rgba(255, 194, 73, 0.52);
    background: linear-gradient(135deg, rgba(43, 10, 70, 0.96), rgba(16, 11, 19, 0.96));
    color: #fff;
  }

  .assisted-order-mode .topbar h1,
  .assisted-order-mode .topbar .eyebrow {
    color: #fff;
  }

  .assisted-order-banner {
    position: sticky;
    top: 172px;
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(31, 13, 39, 0.16);
  }

  .assisted-order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(128px, auto));
    gap: 8px;
  }

  .assisted-order-actions button {
    min-height: 42px;
    border-radius: 12px;
    white-space: nowrap;
  }

  .assisted-order-mode #storeView .catalog-area > .toolbar {
    top: 260px;
  }

  .order-admin-grid {
    grid-template-columns: 1fr;
  }

  .order-edit-row {
    grid-template-columns: minmax(0, 1fr) 90px minmax(130px, 0.65fr);
  }

  .tabloid-workspace,
  .survey-admin-grid {
    grid-template-columns: 1fr;
  }

  .tabloid-preview-panel {
    position: static;
  }

  .tabloid-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tabloid-quick-actions button {
    min-width: 0;
    padding-inline: 8px;
  }

  .store-image-fullscreen-card {
    width: min(940px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    border-radius: 22px;
  }

  .store-image-fullscreen-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .store-image-clean-frame {
    min-height: min(62dvh, 620px);
  }

  .store-image-clean-frame img {
    height: min(58dvh, 580px);
  }

  .assist-action-dock {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .assist-action-button {
    min-height: 40px;
    border-radius: 999px;
  }

}

@media (min-width: 900px) and (max-width: 1100px) {
  .store-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  }

  .cart-panel {
    position: sticky;
    top: 176px;
    max-height: calc(100dvh - 196px);
    overflow: hidden;
  }

  .cart-items {
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

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

  .admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }
}

/* Final tablet card polish: compact seller cards after every mobile/desktop rule. */
@media (min-width: 681px) and (max-width: 1100px) {
  #storeView .product-image {
    height: clamp(150px, 23vw, 205px);
  }

  #storeView .product-card {
    gap: 8px;
  }

  #storeView .quick-price-cell--card {
    gap: 6px;
    margin: 4px 0;
    padding: 8px;
  }

  #storeView .quick-price-cell--card label {
    gap: 4px;
  }

  #storeView .quick-price-row {
    gap: 8px;
  }

  #storeView .quick-price-input,
  #storeView .quick-price-cell--card .compact {
    min-height: 42px;
    border-radius: 12px;
  }

  #storeView .product-qty-control {
    gap: 8px;
  }

  #storeView .product-qty-row {
    grid-template-columns: 44px minmax(64px, 1fr) 44px;
    gap: 8px;
  }

  #storeView .product-qty-row button,
  #storeView .product-qty-row input,
  #storeView .bulk-min-button,
  #storeView .product-card .primary-button {
    min-height: 44px;
    border-radius: 13px;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  #storeView .product-grid {
    grid-template-columns: 1fr;
  }

  #storeView .product-card {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    grid-template-areas:
      "image tags"
      "image title"
      "image price"
      "image cost"
      "image admin"
      "image bulk"
      "qty qty";
    align-items: start;
    min-height: 0;
  }

  #storeView .product-card .product-image {
    grid-area: image;
    height: clamp(170px, 21vw, 220px);
    min-height: 100%;
  }

  #storeView .product-card .tag-row {
    grid-area: tags;
  }

  #storeView .product-card h3 {
    grid-area: title;
    min-height: 0;
  }

  #storeView .product-card .price-line {
    grid-area: price;
  }

  #storeView .product-card .admin-cost-line {
    grid-area: cost;
  }

  #storeView .product-card .quick-price-cell--card {
    grid-area: admin;
  }

  #storeView .product-card > small {
    grid-area: bulk;
  }

  #storeView .product-card .product-qty-control {
    grid-area: qty;
  }
}

/* Active theme absolute final override: repeated here after all responsive blocks. */
body {
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), 0.1), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(var(--primary-rgb), 0.1), transparent 28rem),
    linear-gradient(180deg, #fff, var(--bg) 52%, var(--soft)) !important;
  color: var(--ink);
}

.server-mode-warning {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(87, 31, 136, 0.2);
  background: #fff7df;
  color: #2a1737;
  box-shadow: 0 12px 30px rgba(42, 23, 55, 0.12);
}

body.file-mode-blocked {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.file-mode-blocked .server-mode-warning {
  position: relative;
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid rgba(87, 31, 136, 0.18);
  border-radius: 12px;
}

body.file-mode-blocked .server-mode-warning strong {
  font-size: 1.25rem;
}

.server-mode-warning strong {
  font-size: 0.95rem;
}

.server-mode-warning span,
.server-mode-warning code,
.server-mode-warning a {
  font-size: 0.82rem;
}

.server-mode-warning code {
  width: fit-content;
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  white-space: normal;
}

.server-mode-warning a {
  color: #571f88;
  font-weight: 800;
}

.sidebar {
  background:
    radial-gradient(circle at 92% 20%, rgba(var(--accent-rgb), 0.24), transparent 9rem),
    linear-gradient(135deg, var(--nav-start), var(--nav-end)) !important;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.22);
}

.main-nav {
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.18), transparent 10rem),
    linear-gradient(180deg, var(--nav-start), var(--nav-end)) !important;
  border-color: rgba(var(--accent-rgb), 0.34);
}

.brand .brand-mark,
.mobile-nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.mobile-nav-toggle {
  border-color: rgba(var(--accent-rgb), 0.62);
}

.nav-button.active,
.main-nav .nav-button.active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #fff)) !important;
  color: #241304;
  border-color: var(--accent);
}

.topbar,
.content-section,
.catalog-area,
.cart-panel,
.admin-card,
.modal-card,
.product-card,
.product-row,
.template-card,
.theme-module-card,
.trust-popup-card,
.app-footer {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.primary-button,
.add-button,
.checkout-button,
.admin-login-card button,
.theme-module-card.active,
.seller-action-card.primary,
.assisted-entry-card .primary-button {
  background: linear-gradient(135deg, var(--black), var(--primary)) !important;
  border-color: var(--primary);
}

.badge,
.pill,
.product-card .tag,
.summary-pill,
.theme-module-card .module-badge {
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
}

.price,
.product-price,
.cart-total,
.section-kicker,
.theme-form-card h3,
.trust-popup-title,
.app-footer strong {
  color: var(--primary);
}

.highlight-card,
.trust-popup-grid article,
.theme-form-card,
.theme-module-card.active {
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.13), transparent 13rem),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(255, 255, 255, 0.96));
}

body[data-theme-presentation="compact"] {
  --shadow: 0 10px 24px rgba(var(--shadow-rgb), 0.1);
}

body[data-theme-presentation="compact"] .content,
body[data-theme-presentation="compact"] .main-content {
  gap: 14px;
}

body[data-theme-presentation="compact"] .content-section,
body[data-theme-presentation="compact"] .admin-card,
body[data-theme-presentation="compact"] .cart-panel,
body[data-theme-presentation="compact"] .catalog-area {
  border-radius: 14px;
  padding: clamp(14px, 2vw, 22px);
}

body[data-theme-presentation="compact"] #storeView .product-grid {
  gap: 12px;
}

body[data-theme-presentation="compact"] #storeView .product-card {
  border-radius: 14px;
  padding: 12px;
}

body[data-theme-presentation="compact"] #storeView .product-card .product-image {
  min-height: 132px;
}

body[data-theme-presentation="compact"] .topbar {
  min-height: 64px;
}

body[data-theme-presentation="showcase"] .content-section,
body[data-theme-presentation="showcase"] .catalog-area,
body[data-theme-presentation="showcase"] .cart-panel,
body[data-theme-presentation="showcase"] .admin-card {
  border-radius: 26px;
  padding: clamp(22px, 3vw, 38px);
}

body[data-theme-presentation="showcase"] #storeView .product-grid {
  gap: clamp(18px, 2.5vw, 30px);
}

body[data-theme-presentation="showcase"] #storeView .product-card {
  border-width: 2px;
  border-radius: 26px;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 20% 0, rgba(var(--accent-rgb), 0.14), transparent 16rem),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--soft) 46%, #fff));
}

body[data-theme-presentation="showcase"] #storeView .product-card .product-image {
  min-height: clamp(210px, 22vw, 310px);
}

body[data-theme-presentation="showcase"] .price-line,
body[data-theme-presentation="showcase"] .product-price {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

body[data-theme-presentation="premium"] .topbar,
body[data-theme-presentation="premium"] .content-section:first-of-type {
  background:
    radial-gradient(circle at 8% 12%, rgba(var(--accent-rgb), 0.18), transparent 18rem),
    linear-gradient(135deg, color-mix(in srgb, var(--black) 94%, var(--primary)), var(--primary));
  color: #fff;
}

body[data-theme-presentation="premium"] .topbar h1,
body[data-theme-presentation="premium"] .topbar p,
body[data-theme-presentation="premium"] .content-section:first-of-type h2,
body[data-theme-presentation="premium"] .content-section:first-of-type p {
  color: #fff;
}

body[data-theme-presentation="premium"] .content-section,
body[data-theme-presentation="premium"] .admin-card,
body[data-theme-presentation="premium"] .cart-panel {
  border-radius: 22px;
}

body[data-theme-presentation="premium"] #storeView .product-card {
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), 0.14);
}

/* Final footer responsive override. Keep after every repeated responsive block. */
@media (max-width: 860px) {
  .app-footer {
    padding: 18px;
    border-radius: 16px;
  }

  .footer-brand,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    gap: 10px;
    text-align: center;
    justify-items: center;
  }

  .footer-grid {
    gap: 14px;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
    text-align: center;
  }

  .theme-admin-grid,
  .trust-popup-grid {
    grid-template-columns: 1fr;
  }

  .theme-module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-footer {
    padding: 18px;
    border-radius: 16px;
  }

  .footer-brand,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    gap: 10px;
    text-align: center;
    justify-items: center;
  }

  .footer-grid {
    gap: 14px;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
    text-align: center;
  }
}
/* Active theme true final override: this block is intentionally last. */
body {
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), 0.1), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(var(--primary-rgb), 0.1), transparent 28rem),
    linear-gradient(180deg, #fff, var(--bg) 52%, var(--soft)) !important;
  color: var(--ink);
}

.sidebar {
  background:
    radial-gradient(circle at 92% 20%, rgba(var(--accent-rgb), 0.24), transparent 9rem),
    linear-gradient(135deg, var(--nav-start), var(--nav-end)) !important;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.22);
}

.main-nav {
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.18), transparent 10rem),
    linear-gradient(180deg, var(--nav-start), var(--nav-end)) !important;
  border-color: rgba(var(--accent-rgb), 0.34);
}

.brand .brand-mark,
.mobile-nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.mobile-nav-toggle {
  border-color: rgba(var(--accent-rgb), 0.62);
}

.nav-button.active,
.main-nav .nav-button.active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #fff)) !important;
  color: #241304;
  border-color: var(--accent);
}

.topbar,
.content-section,
.catalog-area,
.cart-panel,
.admin-card,
.modal-card,
.product-card,
.product-row,
.template-card,
.theme-module-card,
.trust-popup-card,
.app-footer {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.primary-button,
.add-button,
.checkout-button,
.admin-login-card button,
.theme-module-card.active,
.seller-action-card.primary,
.assisted-entry-card .primary-button {
  background: linear-gradient(135deg, var(--black), var(--primary)) !important;
  border-color: var(--primary);
}

.badge,
.pill,
.product-card .tag,
.summary-pill,
.theme-module-card .module-badge {
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
}

.price,
.product-price,
.cart-total,
.section-kicker,
.theme-form-card h3,
.trust-popup-title,
.app-footer strong {
  color: var(--primary);
}

.highlight-card,
.trust-popup-grid article,
.theme-form-card,
.theme-module-card.active {
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.13), transparent 13rem),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(255, 255, 255, 0.96));
}

/* Active theme final override: must stay last for desktop, tablet and mobile. */
body {
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), 0.1), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(var(--primary-rgb), 0.1), transparent 28rem),
    linear-gradient(180deg, #fff, var(--bg) 52%, var(--soft)) !important;
  color: var(--ink);
}

.sidebar {
  background:
    radial-gradient(circle at 92% 20%, rgba(var(--accent-rgb), 0.24), transparent 9rem),
    linear-gradient(135deg, var(--nav-start), var(--nav-end)) !important;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.22);
}

.main-nav {
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.18), transparent 10rem),
    linear-gradient(180deg, var(--nav-start), var(--nav-end)) !important;
  border-color: rgba(var(--accent-rgb), 0.34);
}

.brand .brand-mark,
.mobile-nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.mobile-nav-toggle {
  border-color: rgba(var(--accent-rgb), 0.62);
}

.nav-button.active,
.main-nav .nav-button.active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #fff)) !important;
  color: #241304;
  border-color: var(--accent);
}

.topbar,
.content-section,
.catalog-area,
.cart-panel,
.admin-card,
.modal-card,
.product-card,
.product-row,
.template-card,
.theme-module-card,
.trust-popup-card,
.app-footer {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.primary-button,
.add-button,
.checkout-button,
.admin-login-card button,
.theme-module-card.active,
.seller-action-card.primary,
.assisted-entry-card .primary-button {
  background: linear-gradient(135deg, var(--black), var(--primary)) !important;
  border-color: var(--primary);
}

.badge,
.pill,
.product-card .tag,
.summary-pill,
.theme-module-card .module-badge {
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
}

.price,
.product-price,
.cart-total,
.section-kicker,
.theme-form-card h3,
.trust-popup-title,
.app-footer strong {
  color: var(--primary);
}

.highlight-card,
.trust-popup-grid article,
.theme-form-card,
.theme-module-card.active {
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.13), transparent 13rem),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(255, 255, 255, 0.96));
}

/* Global theme palette layer. Keep at the end so every viewport inherits the active theme. */
body {
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), 0.1), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(var(--primary-rgb), 0.1), transparent 28rem),
    linear-gradient(180deg, #fff, var(--bg) 52%, var(--soft)) !important;
  color: var(--ink);
}

.sidebar {
  background:
    radial-gradient(circle at 92% 20%, rgba(var(--accent-rgb), 0.24), transparent 9rem),
    linear-gradient(135deg, var(--nav-start), var(--nav-end)) !important;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.22);
}

.main-nav {
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.18), transparent 10rem),
    linear-gradient(180deg, var(--nav-start), var(--nav-end)) !important;
  border-color: rgba(var(--accent-rgb), 0.34);
}

.brand .brand-mark,
.mobile-nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.mobile-nav-toggle {
  border-color: rgba(var(--accent-rgb), 0.62);
}

.nav-button.active,
.main-nav .nav-button.active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #fff)) !important;
  color: #241304;
  border-color: var(--accent);
}

.topbar,
.content-section,
.catalog-area,
.cart-panel,
.admin-card,
.modal-card,
.product-card,
.product-row,
.template-card,
.theme-module-card,
.trust-popup-card,
.app-footer {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.primary-button,
.add-button,
.checkout-button,
.admin-login-card button,
.theme-module-card.active,
.seller-action-card.primary,
.assisted-entry-card .primary-button {
  background: linear-gradient(135deg, var(--black), var(--primary)) !important;
  border-color: var(--primary);
}

.secondary-button,
.ghost-button,
.outline-button,
.quick-action,
.theme-actions button,
.template-actions button {
  border-color: var(--line);
}

.badge,
.pill,
.product-card .tag,
.summary-pill,
.theme-module-card .module-badge {
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
}

.price,
.product-price,
.cart-total,
.section-kicker,
.theme-form-card h3,
.trust-popup-title,
.app-footer strong {
  color: var(--primary);
}

.highlight-card,
.trust-popup-grid article,
.theme-form-card,
.theme-module-card.active {
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.13), transparent 13rem),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(255, 255, 255, 0.96));
}

.sync-fab.needs-sync {
  background: linear-gradient(135deg, #d71920, var(--primary)) !important;
}

/* Tablet/mobile safety layer: keep touch targets away from the floating dock. */
@media (max-width: 1100px) {
  html {
    scroll-padding-bottom: calc(260px + env(safe-area-inset-bottom));
  }

  .content {
    padding-bottom: calc(260px + env(safe-area-inset-bottom));
  }

  #storeView .catalog-area {
    padding-bottom: calc(260px + env(safe-area-inset-bottom));
  }

  #storeView .product-card,
  #storeView .cart-panel,
  #storeView .signup-banner {
    scroll-margin-bottom: calc(270px + env(safe-area-inset-bottom));
  }

  .assist-action-dock {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: min(230px, calc(100vw - 24px));
    justify-items: end;
    pointer-events: none;
  }

  .assist-action-button {
    pointer-events: auto;
    touch-action: manipulation;
  }
}

@media (max-width: 680px) {
  .content {
    padding-bottom: calc(230px + env(safe-area-inset-bottom));
  }

  #storeView .catalog-area {
    padding-bottom: calc(230px + env(safe-area-inset-bottom));
  }

  #storeView .product-card,
  #storeView .cart-panel,
  #storeView .signup-banner {
    scroll-margin-bottom: calc(240px + env(safe-area-inset-bottom));
  }

  .assist-action-dock {
    max-width: min(180px, calc(100vw - 20px));
  }

  .assist-action-button.view-back,
  .assist-action-button.undo {
    min-width: 96px;
  }

}

@media (min-width: 681px) and (max-width: 1100px) {
  #storeView .product-grid {
    grid-template-columns: 1fr;
  }

  #storeView .product-card {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    grid-template-areas:
      "image tags"
      "image title"
      "image price"
      "image cost"
      "image admin"
      "image bulk"
      "qty qty";
    align-items: start;
    min-height: 0;
  }

  #storeView .product-card .product-image {
    grid-area: image;
    height: clamp(170px, 24vw, 230px);
    min-height: 100%;
  }

  #storeView .product-card .tag-row {
    grid-area: tags;
  }

  #storeView .product-card h3 {
    grid-area: title;
    min-height: 0;
  }

  #storeView .product-card .price-line {
    grid-area: price;
  }

  #storeView .product-card .admin-cost-line {
    grid-area: cost;
  }

  #storeView .product-card .quick-price-cell--card {
    grid-area: admin;
  }

  #storeView .product-card > small {
    grid-area: bulk;
  }

  #storeView .product-card .product-qty-control {
    grid-area: qty;
  }
}

/* Theme editor v3.05: one safe custom editor, no preset card gallery. */
#adminThemesView .theme-admin-grid {
  display: block;
}

#adminThemesView .theme-editor-panel {
  width: min(100%, 1120px);
}

#adminThemesView .theme-editor-panel form {
  gap: 14px;
}

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

.theme-field-grid label {
  min-width: 0;
}

.theme-live-preview {
  margin-top: 4px;
  padding: clamp(12px, 2vw, 18px);
  border-color: color-mix(in srgb, var(--primary) 16%, var(--line));
  border-radius: var(--theme-card-radius, 16px);
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)), transparent 12rem),
    linear-gradient(135deg, color-mix(in srgb, var(--bg, #fbf8fc) 72%, #fff), var(--surface, #fff));
}

.theme-live-preview-head strong {
  color: var(--primary);
}

.theme-preview-grid {
  gap: var(--theme-density-gap, 8px);
}

.theme-preview-product-card {
  min-height: 118px;
  padding: var(--theme-density-pad, 8px);
  border-radius: calc(var(--theme-card-radius, 16px) * 0.68);
  background: var(--surface, #fff);
}

.theme-live-preview--font-rounded,
body[data-theme-font="rounded"] #storeView {
  font-family: "Nunito", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-live-preview--font-editorial,
body[data-theme-font="editorial"] #storeView {
  font-family: "Georgia", "Times New Roman", serif;
}

.theme-live-preview--font-compact,
body[data-theme-font="compact"] #storeView {
  font-family: "Arial Narrow", "Inter Tight", "Inter", system-ui, sans-serif;
}

.theme-live-preview--search-pill .theme-live-preview-head,
body[data-theme-search="pill"] #storeView .store-search-field {
  border-radius: 999px;
}

.theme-live-preview--search-bar .theme-live-preview-head,
body[data-theme-search="bar"] #storeView .store-search-field {
  border-radius: 8px;
  border-width: 2px;
}

.theme-live-preview--buttons-soft .theme-preview-price strong,
body[data-theme-buttons="soft"] #storeView .product-card .product-add-button {
  background: color-mix(in srgb, var(--accent) 18%, #fff) !important;
  color: var(--primary) !important;
  border-color: color-mix(in srgb, var(--accent) 38%, transparent) !important;
}

.theme-live-preview--buttons-outline .theme-preview-price strong,
body[data-theme-buttons="outline"] #storeView .product-card .product-add-button {
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid color-mix(in srgb, var(--primary) 72%, var(--accent)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 20px rgba(var(--shadow-rgb), 0.08) !important;
}

.theme-live-preview--cards-compact .theme-preview-product-card,
body[data-theme-cards="compact"][data-active-view="store"] #storeView .product-card {
  border-radius: max(8px, calc(var(--theme-card-radius, 16px) * 0.72)) !important;
}

.theme-live-preview--cards-imageFirst .theme-preview-product-image,
body[data-theme-cards="imageFirst"][data-active-view="store"] #storeView .product-card .product-image {
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)), transparent 62%),
    color-mix(in srgb, var(--accent-soft) 44%, #fff) !important;
}

body[data-active-view="store"] #storeView .content-section,
body[data-active-view="store"] #storeView .catalog-area,
body[data-active-view="store"] #storeView .cart-panel {
  border-color: var(--line) !important;
}

body[data-active-view="store"] #storeView .store-search-field {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--accent-soft)), var(--surface)) !important;
  border-color: color-mix(in srgb, var(--primary) 16%, var(--line)) !important;
}

body[data-active-view="store"] #storeView .store-search-field input#storeSearch {
  color: var(--ink) !important;
}

body[data-active-view="store"] #storeView .store-search-icon {
  background: var(--accent) !important;
}

body[data-active-view="store"] #storeView .product-card,
body[data-active-view="store"] #storeView .product-card.product-card--no-bulk,
body[data-active-view="store"] #storeView .product-card.product-card--has-bulk {
  border-radius: var(--theme-card-radius, 16px) !important;
}

body[data-active-view="store"] #storeView .product-card h3,
body[data-active-view="store"] #storeView .product-card .price-line strong {
  color: var(--ink) !important;
}

body[data-active-view="store"] #storeView .product-card .price-line small,
body[data-active-view="store"] #storeView .product-card > small,
body[data-active-view="store"] #storeView .product-card .tag {
  color: var(--primary) !important;
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip {
  border-color: color-mix(in srgb, var(--primary) 16%, var(--line)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 30%, #fff), var(--surface)) !important;
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy b,
body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip small {
  color: var(--primary) !important;
}

body[data-active-view="store"] .store-suggestion-preview-card {
  border-color: color-mix(in srgb, var(--primary) 18%, var(--line));
  border-radius: var(--theme-card-radius, 16px);
  background: color-mix(in srgb, var(--surface) 96%, var(--accent-soft));
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
  border-radius: 10px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 11%, #fff), color-mix(in srgb, var(--accent) 12%, #fff)) !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-grid {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(236px, 31%) !important;
  grid-template-columns: none !important;
  align-items: stretch !important;
  gap: var(--theme-density-gap, 14px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  padding: 6px 4px 22px !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card {
  scroll-snap-align: start !important;
  min-height: 468px !important;
  transform: none !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:hover,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(even):hover,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(odd):hover,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(even),
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(odd) {
  transform: none !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card .product-image,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(3n + 1) .product-image,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(5n + 2) .product-image {
  height: clamp(132px, 17vw, 184px) !important;
  min-height: clamp(132px, 17vw, 184px) !important;
  max-height: clamp(132px, 17vw, 184px) !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] {
  background:
    radial-gradient(circle at 12% 0, rgba(var(--accent-rgb), 0.2), transparent 26rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, #fff), var(--bg)) !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] #storeView .topbar,
body[data-theme-presentation="premium"][data-active-view="store"] #storeView .content-section:first-of-type {
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.24), transparent 18rem),
    linear-gradient(135deg, var(--nav-start), var(--nav-end)) !important;
  color: #fff !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] #storeView .topbar h1,
body[data-theme-presentation="premium"][data-active-view="store"] #storeView .topbar p,
body[data-theme-presentation="premium"][data-active-view="store"] #storeView .content-section:first-of-type h2,
body[data-theme-presentation="premium"][data-active-view="store"] #storeView .content-section:first-of-type p {
  color: #fff !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] #storeView .product-grid {
  gap: clamp(16px, 2vw, 24px) !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] #storeView .product-card {
  padding-top: 8px !important;
  background:
    radial-gradient(circle at 20% 0, rgba(var(--accent-rgb), 0.12), transparent 13rem),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--bg) 32%, #fff)) !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] #storeView .product-card .product-add-button {
  min-height: 48px !important;
  border-radius: 999px !important;
}

body.theme-previewing-store::before {
  content: "Prévia sem salvar";
  position: fixed;
  z-index: 700;
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 1000;
  box-shadow: 0 12px 28px rgba(var(--shadow-rgb), 0.2);
  pointer-events: none;
}

@media (max-width: 680px) {
  .theme-field-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-grid {
    grid-auto-columns: minmax(176px, 58vw) !important;
    gap: 10px !important;
  }

  body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card {
    min-height: 492px !important;
  }

  body.theme-previewing-store::before {
    bottom: calc(126px + env(safe-area-inset-bottom));
    left: 10px;
    font-size: 0.64rem;
  }
}

/* Tablet card polish: compact enough for seller-assisted use without shrinking touch targets. */
@media (min-width: 681px) and (max-width: 1100px) {
  #storeView .product-image {
    height: clamp(150px, 23vw, 205px);
  }

  #storeView .product-card {
    gap: 8px;
  }

  #storeView .quick-price-cell--card {
    gap: 6px;
    margin: 4px 0;
    padding: 8px;
  }

  #storeView .quick-price-cell--card label {
    gap: 4px;
  }

  #storeView .quick-price-row {
    gap: 8px;
  }

  #storeView .quick-price-input,
  #storeView .quick-price-cell--card .compact {
    min-height: 42px;
    border-radius: 12px;
  }

  #storeView .product-qty-control {
    gap: 8px;
  }

  #storeView .product-qty-row {
    grid-template-columns: 44px minmax(64px, 1fr) 44px;
    gap: 8px;
  }

  #storeView .product-qty-row button,
  #storeView .product-qty-row input,
  #storeView .bulk-min-button,
  #storeView .product-card .primary-button {
    min-height: 44px;
    border-radius: 13px;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  #storeView .product-grid {
    grid-template-columns: 1fr;
  }

  #storeView .product-card {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    grid-template-areas:
      "image tags"
      "image title"
      "image price"
      "image cost"
      "image admin"
      "image bulk"
      "qty qty";
    align-items: start;
    min-height: 0;
  }

  #storeView .product-card .product-image {
    grid-area: image;
    height: clamp(170px, 21vw, 220px);
    min-height: 100%;
  }

  #storeView .product-card .tag-row {
    grid-area: tags;
  }

  #storeView .product-card h3 {
    grid-area: title;
    min-height: 0;
  }

  #storeView .product-card .price-line {
    grid-area: price;
  }

  #storeView .product-card .admin-cost-line {
    grid-area: cost;
  }

  #storeView .product-card .quick-price-cell--card {
    grid-area: admin;
  }

  #storeView .product-card > small {
    grid-area: bulk;
  }

  #storeView .product-card .product-qty-control {
    grid-area: qty;
  }
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(243, 169, 31, 0.14), transparent 34rem),
    linear-gradient(180deg, #fff, var(--bg));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 12%, rgba(243, 169, 31, 0.2), transparent 7rem),
    linear-gradient(180deg, #2b0a46, var(--black));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.brand-mark:hover,
.brand-mark.is-active {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 0 0 5px rgba(243, 169, 31, 0.14);
  transform: translateY(-1px);
}

.brand small,
.operator-box small {
  color: rgba(255, 255, 255, 0.72);
}

.mobile-nav-toggle,
.mobile-nav-scrim {
  display: none;
}

.mobile-nav-open .sidebar {
  z-index: 180;
}

.main-nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
}

.nav-button.active,
.nav-button:hover {
  background: rgba(243, 169, 31, 0.15);
  border-color: rgba(243, 169, 31, 0.38);
}

.operator-box {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(243, 169, 31, 0.2);
  display: grid;
  gap: 4px;
}

.content {
  position: relative;
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
  margin-bottom: 8px;
}

.topbar-actions,
.toolbar,
.bulk-actions,
.panel-title,
.tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notification-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: max(74px, calc(env(safe-area-inset-top) + 14px));
  z-index: 120;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #15803d;
  box-shadow:
    0 12px 26px rgba(31, 13, 39, 0.12),
    inset 0 -3px 0 #22c55e;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.notification-fab:hover {
  transform: translateY(-1px);
}

.notification-fab.is-alert {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.28);
  box-shadow:
    0 14px 30px rgba(185, 28, 28, 0.16),
    inset 0 -3px 0 #ef4444;
}

.notification-fab svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-fab strong {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
}

.notification-fab:not(.is-alert) strong {
  display: none;
}

.notification-panel {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  top: max(126px, calc(env(safe-area-inset-top) + 66px));
  z-index: 121;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(31, 13, 39, 0.22);
}

.notification-panel.hidden {
  display: none;
}

.notification-panel-head,
.notification-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#notificationList {
  display: grid;
  gap: 8px;
  max-height: min(520px, 68vh);
  overflow: auto;
}

.notification-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notification-item.is-pending {
  border-color: rgba(243, 169, 31, 0.55);
  background: #fff8e4;
}

.notification-item.is-high-priority {
  border-color: rgba(185, 28, 28, 0.28);
  background: #fff7f7;
}

.notification-item.is-read {
  opacity: 0.72;
}

.notification-item small,
.notification-item strong,
.notification-item span {
  display: block;
}

.notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-item small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.notification-item strong {
  color: var(--ink);
}

.notification-item span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.notification-item .notification-meta span {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef8f1;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.inline-config-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px) auto;
  align-items: end;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(108, 35, 166, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7df, #f8efff);
  box-shadow: 0 12px 28px rgba(55, 18, 82, 0.07);
}

.inline-config-card strong,
.inline-config-card small {
  display: block;
}

.inline-config-card strong {
  color: var(--primary-strong);
  font-size: 1.02rem;
}

.inline-config-card small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.assisted-order-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 184, 26, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, #21062f, #64209a);
  box-shadow: 0 14px 34px rgba(34, 6, 47, 0.18);
  color: #fff;
}

.assisted-order-banner strong,
.assisted-order-banner span {
  display: block;
}

.assisted-order-banner strong {
  color: #fff;
  font-size: 1.05rem;
}

.assisted-order-banner span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.assisted-order-actions,
.seller-flow-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.assisted-order-status {
  display: flex;
  align-items: center;
  min-width: min(100%, 420px);
  gap: 12px;
}

.assisted-mode-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffb81a;
  color: #22052e !important;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

.assisted-order-mode {
  background:
    linear-gradient(180deg, rgba(255, 248, 225, 0.9), rgba(248, 243, 255, 0.96) 28%, #fff 100%),
    var(--bg);
}

.assisted-order-mode .topbar {
  padding: 14px 16px;
  border: 1px solid rgba(255, 184, 26, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #fff8dd);
  box-shadow: 0 14px 32px rgba(31, 13, 39, 0.1);
}

.assisted-order-mode .topbar .eyebrow {
  color: #9b4b00;
}

.assisted-order-mode #storeView .catalog-area {
  border: 1px solid rgba(255, 184, 26, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(31, 13, 39, 0.09);
}

.assisted-order-mode #storeView .toolbar {
  position: sticky;
  top: var(--store-toolbar-sticky-top, 10px);
  z-index: 18;
  margin: -2px 0 16px;
  padding: 12px;
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(31, 13, 39, 0.08);
  backdrop-filter: blur(12px);
}

.assisted-order-mode #storeView .product-card {
  border-color: rgba(255, 184, 26, 0.35);
}

.assisted-order-mode #storeView .primary-button {
  background: linear-gradient(135deg, #1a0524, #64209a);
}

.seller-flow-steps {
  margin: 10px 0 14px;
}

.seller-flow-steps span {
  border-radius: 999px;
  background: #f1e4fb;
  color: var(--primary);
  font-weight: 800;
  padding: 8px 12px;
}

.seller-current-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 180, 30, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #1a0b24, #4f1673);
  color: #fff;
  box-shadow: 0 16px 38px rgba(55, 18, 82, 0.18);
}

.seller-current-card span,
.seller-current-card small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.seller-current-card strong {
  display: block;
  margin: 2px 0;
  color: #fff;
  font-size: 1.55rem;
}

.seller-current-card .ghost-button {
  background: rgba(255, 255, 255, 0.95);
}

.seller-dashboard-shell {
  display: grid;
  gap: 16px;
}

.seller-current-card {
  position: relative;
  overflow: hidden;
}

.seller-current-card::after {
  content: "";
  position: absolute;
  inset: auto 18px -46px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 26, 0.28), transparent 68%);
  pointer-events: none;
}

.seller-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.seller-dashboard-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.seller-stat-card,
.seller-fund-card {
  min-height: 116px;
  border-color: rgba(100, 32, 154, 0.14);
  box-shadow: 0 12px 28px rgba(31, 13, 39, 0.06);
}

.seller-stat-card strong,
.seller-fund-card strong {
  display: block;
  margin: 5px 0 4px;
}

.seller-stat-card small,
.seller-fund-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
}

.seller-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.seller-assist-card,
.seller-clients-card,
.seller-order-workspace,
.seller-orders-section {
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(31, 13, 39, 0.07);
}

.seller-assist-card,
.seller-clients-card {
  padding: 16px;
}

.seller-order-workspace,
.seller-orders-section {
  margin-top: 18px;
  padding: 16px;
}

.seller-assist-form {
  gap: 12px;
}

.seller-margin-field {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 26, 0.42);
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.82), rgba(255, 255, 255, 0.92));
}

.seller-form-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.seller-start-order-button {
  min-height: 52px;
  font-size: 1rem;
}

.seller-code-legend {
  display: grid;
  gap: 5px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px dashed rgba(100, 32, 154, 0.26);
  border-radius: 8px;
  background: rgba(248, 243, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.seller-code-legend strong {
  color: var(--primary);
  font-size: 0.86rem;
}

.seller-client-list {
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.seller-client-list > div,
.seller-orders-section .order-card {
  border-color: rgba(100, 32, 154, 0.12);
}

.seller-pricing-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.seller-pricing-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr) minmax(130px, 0.6fr) auto;
  gap: 10px;
  align-items: end;
}

.seller-pricing-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.seller-pricing-summary,
.seller-commission-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.seller-pricing-summary article,
.seller-commission-summary article {
  background: linear-gradient(135deg, rgba(100, 32, 154, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  padding: 12px;
}

.seller-pricing-summary span,
.seller-commission-summary span,
.seller-pricing-metrics small {
  color: #7d718a;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.seller-pricing-summary strong,
.seller-commission-summary strong {
  color: #211628;
  display: block;
  font-size: 1.15rem;
  margin-top: 3px;
}

.seller-pricing-help {
  background: #fbf7ff;
  border: 1px dashed rgba(100, 32, 154, 0.28);
  border-radius: 8px;
  color: #6e6179;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.seller-pricing-subtitle {
  color: #281531;
  font-size: 0.95rem;
  margin: 4px 0 0;
}

.seller-pricing-product-card,
.seller-pricing-saved-card {
  background: #fff;
  border: 1px solid rgba(100, 32, 154, 0.18);
  border-radius: 8px;
  color: #211628;
  display: grid;
  gap: 8px;
  padding: 12px;
  text-align: left;
}

.seller-pricing-product-card {
  cursor: pointer;
}

.seller-pricing-product-card.active,
.seller-pricing-saved-card.is-loss,
.seller-pricing-product-card.is-loss {
  border-color: #d18d00;
  box-shadow: 0 0 0 2px rgba(209, 141, 0, 0.12);
}

.seller-pricing-rule-badge {
  align-self: start;
  background: #f2e9fb;
  border-radius: 999px;
  color: #64209a;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-self: start;
  padding: 5px 9px;
}

.seller-pricing-rule-badge.is-custom {
  background: #250b31;
  color: #fff;
}

.seller-pricing-rule-badge.is-loss {
  background: #fff2ce;
  color: #8a4700;
}

.seller-pricing-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.seller-pricing-metrics span {
  background: #faf7fd;
  border: 1px solid rgba(100, 32, 154, 0.1);
  border-radius: 8px;
  padding: 8px;
}

.seller-pricing-metrics b {
  display: block;
  margin-top: 2px;
}

.seller-pricing-metrics .danger-metric {
  background: #fff1f1;
  border-color: rgba(177, 34, 34, 0.25);
  color: #9a1f1f;
}

.seller-pricing-metrics .positive-metric {
  background: #effaf2;
  border-color: rgba(21, 122, 50, 0.22);
  color: #126329;
}

.seller-pricing-warning {
  background: #fff8e2;
  border-radius: 8px;
  color: #744400;
  font-weight: 800;
  margin: 0;
  padding: 8px 10px;
}

.seller-pricing-saved-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.wholesale-pricing-form {
  grid-template-columns: minmax(220px, 1.2fr) minmax(130px, 0.5fr) minmax(150px, 0.6fr) auto;
}

.seller-commission-panel,
.finance-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.seller-report-toolbar,
.finance-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-commission-table,
.finance-table {
  max-height: 520px;
}

.finance-dre-grid {
  margin-bottom: 14px;
}

#financeDashboardContent {
  display: grid;
  gap: 14px;
}

.finance-overview-section .report-view-summary {
  padding: 0;
}

.seller-order-workspace .order-detail-panel {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.primary-button,
.ghost-button,
.admin-access-button,
.whatsapp-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
}

.whatsapp-button {
  background: #19a75b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(25, 167, 91, 0.18);
}

.whatsapp-button:hover {
  background: #128c4a;
}

.browse-without-login-button {
  border: 2px solid #d71920;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 18px;
  background: #fff;
  color: #d71920;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(215, 25, 32, 0.14);
}

.browse-without-login-button:hover {
  background: #d71920;
  color: #fff;
  box-shadow: 0 16px 32px rgba(215, 25, 32, 0.22);
}

.customer-modal-card .browse-without-login-button {
  flex: 1 1 220px;
}

.cart-top-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 16px 10px 12px;
  border: 2px solid rgba(255, 184, 26, 0.78);
  background: linear-gradient(135deg, var(--purple), #8a24bd);
  box-shadow: 0 14px 30px rgba(100, 32, 154, 0.24);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cart-top-button::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
}

.cart-top-button:hover .cart-top-icon {
  transform: translateY(-1px) rotate(-4deg);
}

.cart-top-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--purple);
  line-height: 1;
  box-shadow: 0 6px 16px rgba(31, 13, 39, 0.18);
  transition: transform 0.2s ease;
}

.cart-top-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-top-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.cart-top-copy strong,
.cart-top-copy small {
  color: #fff;
}

.cart-top-copy strong {
  font-size: 0.96rem;
}

.cart-top-copy small {
  font-size: 0.78rem;
  opacity: 0.88;
}

#cartCount {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  line-height: 1;
}

.cart-side-peek,
.cart-drawer {
  display: none;
}

.cart-side-peek {
  position: fixed;
  right: -5px;
  top: 50%;
  z-index: 150;
  width: 50px;
  min-height: 72px;
  padding: 8px 5px 8px 9px;
  border: 0;
  border-radius: 999px 0 0 999px;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #1f0d27, #64209a 72%, #f3a91f);
  color: #fff;
  box-shadow: -10px 14px 26px rgba(31, 13, 39, 0.18);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cart-side-peek::before {
  content: "";
  position: absolute;
  inset: -10px 0 -10px -14px;
  border-radius: 999px 0 0 999px;
}

.cart-side-arrow {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8rem;
  font-weight: 1000;
  line-height: 1;
}

.cart-side-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  box-shadow: 0 6px 13px rgba(31, 13, 39, 0.18);
}

.cart-side-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-side-peek.is-cart-bump {
  animation: cart-side-bump 760ms ease both;
}

.cart-side-peek.is-cart-bump .cart-side-icon,
.cart-side-peek.is-cart-bump #cartSideCount {
  animation: cart-side-flash 760ms ease both;
}

@keyframes cart-side-bump {
  0% {
    transform: translateY(-50%) translateX(0) scale(1);
    filter: brightness(1);
  }
  18% {
    transform: translateY(-50%) translateX(-6px) scale(1.05);
    filter: brightness(1.14);
  }
  38% {
    transform: translateY(-50%) translateX(-2px) scale(1.01);
  }
  58% {
    transform: translateY(-50%) translateX(-4px) scale(1.03);
    filter: brightness(1.12);
  }
  100% {
    transform: translateY(-50%) translateX(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes cart-side-flash {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(31, 13, 39, 0.22);
  }
  22%,
  58% {
    box-shadow:
      0 0 0 5px rgba(243, 169, 31, 0.18),
      0 9px 18px rgba(243, 169, 31, 0.3);
  }
}

#cartSideCount {
  position: absolute;
  top: 5px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3a91f;
  color: #251303;
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 5px 10px rgba(31, 13, 39, 0.14);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
}

.cart-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.cart-drawer-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 13, 39, 0.36);
  opacity: 0;
  transition: opacity 180ms ease;
}

.cart-drawer.is-open .cart-drawer-scrim {
  opacity: 1;
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 92vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border-radius: 22px 0 0 22px;
  box-shadow: -22px 0 46px rgba(31, 13, 39, 0.26);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head small {
  display: block;
  color: var(--accent);
  font-weight: 1000;
  text-transform: uppercase;
}

.cart-drawer-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.cart-drawer-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.cart-drawer-items {
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 0 6px 0 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer-summary {
  margin: 0;
}

.cart-drawer-checkout {
  min-height: 54px;
  font-size: 1rem;
  box-shadow: 0 14px 28px rgba(25, 167, 91, 0.18);
}

body.cart-drawer-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  body[data-active-view="store"] .cart-side-peek {
    display: grid;
    align-content: center;
    justify-items: center;
  }

  body.cart-drawer-open .cart-side-peek {
    opacity: 0;
    pointer-events: none;
  }

  .cart-drawer.is-open {
    display: block;
  }
}

@media (min-width: 761px) {
  .cart-drawer.is-open {
    display: block;
  }
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-strong);
}

.ghost-button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost-button.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.danger-button {
  color: var(--danger);
}

.admin-access-button {
  position: absolute;
  top: 18px;
  right: 28px;
  z-index: 12;
  background: var(--black);
  color: var(--accent);
  border: 1px solid rgba(243, 169, 31, 0.62);
}

.admin-access-button.is-active {
  background: var(--accent-soft);
  color: var(--primary-strong);
}

.compact {
  min-height: 34px;
  padding: 0 10px;
}

.full {
  width: 100%;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  min-height: 250px;
  padding: 24px 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(243, 169, 31, 0.34), transparent 16rem),
    linear-gradient(90deg, rgba(16, 11, 19, 0.98), rgba(100, 32, 154, 0.9)),
    var(--black);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-strip.hero-strip--theme-image {
  background:
    linear-gradient(90deg, rgba(16, 11, 19, 0.94), rgba(var(--primary-rgb), 0.72)),
    var(--theme-hero-image) center / cover no-repeat,
    linear-gradient(90deg, rgba(16, 11, 19, 0.98), rgba(100, 32, 154, 0.9)),
    var(--black);
}

.hero-strip.hero-strip--theme-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(var(--accent-rgb), 0.24), transparent 17rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 8px;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hero-copy span {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-copy strong {
  font-size: clamp(1.55rem, 4vw, 3.1rem);
  line-height: 1.04;
}

.hero-copy p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
  line-height: 1.45;
}

.hero-logo-frame {
  width: min(42vw, 390px);
  min-width: 250px;
  align-self: center;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.3));
}

.missing-logo-note {
  display: none;
}

.hero-logo-frame.missing-logo {
  min-height: 220px;
  border-radius: 8px;
  background: #fff;
  border: 3px solid var(--accent);
  padding: 22px;
  text-align: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.hero-logo-frame.missing-logo .missing-logo-note {
  display: grid;
  gap: 8px;
}

.missing-logo-note strong {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1.05;
}

.missing-logo-note span {
  color: var(--muted);
  font-weight: 800;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.catalog-area,
.cart-panel,
.editor-panel,
.order-card,
.settings-grid,
.sources-list,
.analytics-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.catalog-area {
  padding: 18px;
}

#storeView .catalog-area > .toolbar {
  position: sticky;
  top: 12px;
  z-index: 35;
  margin: -18px -18px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(231, 223, 240, 0.92);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(62, 27, 91, 0.08);
  backdrop-filter: blur(14px);
  transform: translateZ(0);
}

.cart-panel,
.editor-panel {
  position: sticky;
  top: 20px;
  padding: 18px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

label small {
  color: var(--muted);
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  min-height: 82px;
}

.search-field {
  flex: 1 1 280px;
  position: relative;
}

.product-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(48, 13, 76, 0.16);
  padding: 6px;
}

.product-search-suggestions button,
.product-search-empty {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.product-search-suggestions button {
  cursor: pointer;
}

.product-search-suggestions button:hover,
.product-search-suggestions button:focus {
  background: #fbf7ff;
  outline: none;
}

.product-search-suggestions strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.product-search-suggestions span,
.product-search-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.delivery-note {
  margin: 16px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #5c3b00;
  line-height: 1.4;
}

.store-tabloid-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b0a46, #64209a 62%, #f3a91f);
  color: #fff;
  box-shadow: 0 16px 34px rgba(100, 32, 154, 0.18);
}

.store-tabloid-banner small,
.store-tabloid-banner h2,
.store-tabloid-banner p {
  display: block;
  margin: 0;
}

.store-tabloid-banner small {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.store-tabloid-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  line-height: 1.35;
}

.store-tabloid-banner .primary-button {
  background: #fff;
  color: var(--primary);
}

.tabs {
  margin: 10px 0 20px;
}

.tab-button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  font-weight: 800;
}

.tab-button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-button[data-category="ofertas"] {
  border-color: rgba(243, 169, 31, 0.65);
  background: linear-gradient(135deg, #fff7d8, #ffe08a);
  color: #6d4600;
}

.tab-button[data-category="ofertas"].active {
  background: linear-gradient(135deg, #f3a91f, #ffcf48);
  border-color: #f3a91f;
  color: #231505;
}

.tab-button[data-category^="custom:"] {
  border-color: rgba(100, 32, 154, 0.26);
  background: linear-gradient(135deg, #fff, #f3eafa);
}

.tab-button[data-category^="custom:"].active {
  background: linear-gradient(135deg, #2b0a46, #64209a);
  border-color: #2b0a46;
  color: #fff;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-heading span,
.panel-title p {
  color: var(--muted);
}

#featuredProducts {
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(100, 32, 154, 0.08), rgba(243, 169, 31, 0.12)),
    #fff;
}

#featuredProducts.hidden {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.product-card {
  position: relative;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-image {
  --image-frame-inset: 18px;
  position: relative;
  isolation: isolate;
  height: 260px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(100, 32, 154, 0.08);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 2rem;
  overflow: hidden;
  cursor: zoom-in;
}

.product-image::before,
.own-image-thumb::before,
.result-thumb::before,
.missing-image-preview::before,
.image-option-strip button::before,
.image-picker-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
  border-radius: inherit;
}

.product-image > img:not(.product-promo-footer) {
  position: absolute;
  z-index: 1;
  inset: var(--image-frame-inset);
  width: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  height: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.product-image .product-promo-footer {
  position: absolute;
  left: var(--promo-x, 50%);
  top: var(--promo-y, 100%);
  right: auto;
  bottom: auto;
  z-index: 3;
  width: min(var(--promo-width, var(--promo-scale, 100%)), 160%);
  height: min(var(--promo-height, var(--promo-scale, 100%)), 160%);
  max-width: 160%;
  max-height: 160%;
  object-fit: contain;
  object-position: center bottom;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(31, 13, 39, 0.18));
}

.promo-asset-preview .product-promo-footer {
  position: absolute;
  left: var(--promo-x, 50%);
  top: var(--promo-y, 100%);
  right: auto;
  bottom: auto;
  z-index: 3;
  width: var(--promo-width, var(--promo-scale, 100%));
  height: var(--promo-height, var(--promo-scale, 100%));
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(31, 13, 39, 0.18));
}

.product-image .product-promo-footer.position-bottom,
.promo-asset-preview .product-promo-footer.position-bottom {
  inset: auto auto 0 var(--promo-x, 50%);
  transform: translateX(-50%);
  object-position: center bottom;
}

.product-image .product-promo-footer.position-bottom {
  max-width: 160%;
  max-height: 160%;
}

.promo-asset-preview .product-promo-footer.position-bottom {
  width: var(--promo-width, var(--promo-scale, 100%));
  height: var(--promo-height, var(--promo-scale, 100%));
  max-height: 100%;
}

.product-image .product-promo-footer.position-top,
.promo-asset-preview .product-promo-footer.position-top {
  inset: 0 auto auto var(--promo-x, 50%);
  transform: translateX(-50%);
  object-position: center top;
}

.product-image .product-promo-footer.position-top {
  max-width: 160%;
  max-height: 160%;
}

.promo-asset-preview .product-promo-footer.position-top {
  width: var(--promo-width, var(--promo-scale, 100%));
  height: var(--promo-height, var(--promo-scale, 100%));
  max-height: 100%;
}

.product-image .product-promo-footer.position-right,
.promo-asset-preview .product-promo-footer.position-right {
  inset: auto 0 0 auto;
  transform: none;
  object-position: right center;
}

.product-image .product-promo-footer.position-right {
  max-width: 160%;
  max-height: 160%;
}

.promo-asset-preview .product-promo-footer.position-right {
  width: var(--promo-width, var(--promo-scale, 100%));
  height: var(--promo-height, var(--promo-scale, 100%));
  max-width: var(--promo-width, var(--promo-scale, 100%));
  max-height: 100%;
}

.product-image .product-promo-footer.position-left,
.promo-asset-preview .product-promo-footer.position-left {
  inset: auto auto 0 0;
  transform: none;
  object-position: left center;
}

.product-image .product-promo-footer.position-left {
  max-width: 160%;
  max-height: 160%;
}

.promo-asset-preview .product-promo-footer.position-left {
  width: var(--promo-width, var(--promo-scale, 100%));
  height: var(--promo-height, var(--promo-scale, 100%));
  max-width: var(--promo-width, var(--promo-scale, 100%));
  max-height: 100%;
}

.product-image .product-promo-footer.position-manual,
.promo-asset-preview .product-promo-footer.position-manual {
  left: var(--promo-x, 50%);
  top: var(--promo-y, 80%);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}

.product-image .product-promo-footer.position-manual {
  max-width: 160%;
  max-height: 160%;
}

.promo-asset-preview .product-promo-footer.position-manual {
  width: var(--promo-width, var(--promo-scale, 100%));
  height: var(--promo-height, var(--promo-scale, 100%));
}

.product-image--missing {
  --image-frame-inset: 8px;
  position: relative;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(100, 32, 154, 0.16);
}

.product-image--missing::after {
  content: none;
}

.product-image-placeholder {
  width: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  height: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 8px;
  display: block;
}

.product-card--offer {
  border-color: rgba(243, 169, 31, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 249, 222, 0.96), #fff 52%),
    #fff;
  box-shadow: 0 18px 38px rgba(156, 91, 0, 0.16);
  animation: offer-card-float 5.8s ease-in-out infinite;
}

.product-card--offer::before,
.product-card--custom::before {
  position: absolute;
  top: 18px;
  right: -48px;
  z-index: 2;
  width: 170px;
  transform: rotate(35deg);
  padding: 7px 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 1000;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card--offer::before {
  content: attr(data-ribbon);
  background: #f3a91f;
  color: #261604;
}

.product-card--offer .product-image {
  border-color: rgba(243, 169, 31, 0.55);
  background:
    radial-gradient(circle at 18% 20%, rgba(243, 169, 31, 0.18), transparent 10rem),
    #fff;
}

.product-card--offer .primary-button {
  background: #f3a91f;
  color: #251303;
}

.product-card--offer .primary-button:hover {
  background: #d98d04;
}

.product-card--custom {
  border-color: rgba(100, 32, 154, 0.55);
  background:
    linear-gradient(180deg, rgba(243, 234, 250, 0.95), #fff 48%),
    #fff;
  box-shadow: 0 16px 34px rgba(74, 21, 112, 0.14);
  animation: custom-card-glow 6.6s ease-in-out infinite;
}

.product-card--custom::before {
  content: attr(data-ribbon);
  background: #2b0a46;
  color: #fff;
}

.product-card--custom .product-image {
  border-color: rgba(100, 32, 154, 0.22);
  background:
    radial-gradient(circle at 82% 18%, rgba(100, 32, 154, 0.12), transparent 11rem),
    #fff;
}

.product-card--offer:hover,
.product-card--custom:hover {
  transform: translateY(-3px);
}

@keyframes offer-card-float {
  0%,
  100% {
    box-shadow: 0 18px 38px rgba(156, 91, 0, 0.14);
  }
  50% {
    box-shadow: 0 22px 46px rgba(243, 169, 31, 0.24);
  }
}

@keyframes custom-card-glow {
  0%,
  100% {
    box-shadow: 0 16px 34px rgba(74, 21, 112, 0.13);
  }
  50% {
    box-shadow: 0 22px 48px rgba(100, 32, 154, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card--offer,
  .product-card--custom {
    animation: none;
  }
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.seller-negotiation-box {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px dashed rgba(100, 32, 154, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 13, 39, 0.04), rgba(100, 32, 154, 0.08));
}

.seller-negotiation-box.is-limit-alert {
  border-color: rgba(215, 25, 32, 0.45);
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.07), rgba(100, 32, 154, 0.08));
}

.seller-negotiation-box.is-discount-ok {
  border-color: rgba(25, 167, 91, 0.36);
  background: linear-gradient(135deg, rgba(25, 167, 91, 0.08), rgba(255, 255, 255, 0.95));
}

.seller-negotiation-box > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(100, 32, 154, 0.1);
}

.seller-negotiation-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.seller-negotiation-box strong {
  color: var(--purple);
  font-size: 0.86rem;
  text-align: right;
  word-break: break-word;
}

.seller-negotiation-box input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  font-size: 1.05rem;
  font-weight: 1000;
  color: var(--ink);
  background: #fff;
}

.seller-negotiation-box input.is-below-cost {
  border-color: #d71920;
  background: #fff5f5;
  color: #9f1018;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.seller-live-hint {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.seller-live-hint.is-alert {
  color: #9f1018;
}

.seller-live-hint.is-ok {
  color: #08763f;
}

.manager-request-modal-card {
  max-width: 560px;
}

.manager-request-popup-summary {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) 1fr;
  gap: 8px 14px;
  padding: 14px;
  margin: 14px 0 4px;
  border-radius: 8px;
  border: 1px solid rgba(100, 32, 154, 0.18);
  background: linear-gradient(135deg, rgba(31, 13, 39, 0.04), rgba(100, 32, 154, 0.08));
}

.manager-request-popup-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.manager-request-popup-summary strong {
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.tag.warn {
  background: var(--accent-soft);
  color: #7a5300;
}

.price-line {
  display: grid;
  gap: 2px;
}

.price-line strong {
  font-size: 1.18rem;
}

.admin-cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff7d8;
  border: 1px dashed rgba(122, 83, 0, 0.36);
  color: #5c3b00;
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-cost-line strong {
  font-size: 0.95rem;
}

.price-line small,
.cart-item small,
.audit-line {
  color: var(--muted);
}

.product-qty-control {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.product-qty-row {
  display: grid;
  grid-template-columns: 38px minmax(64px, 1fr) 38px;
  gap: 8px;
}

.product-qty-row button,
.bulk-min-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  min-height: 38px;
}

.product-qty-row input {
  min-height: 38px;
  padding: 8px;
  text-align: center;
  font-weight: 900;
}

.bulk-min-button {
  background: var(--accent-soft);
  color: #5c3b00;
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  display: grid;
  gap: 8px;
}

.cart-item--pending-manager {
  margin: 0 -4px;
  padding: 10px;
  border: 1px solid rgba(215, 25, 32, 0.38);
  border-radius: 8px;
  background: #fff5f5;
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.1);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-row button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.customer-checkout-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.customer-checkout-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.customer-checkout-card span,
.customer-checkout-card small {
  color: var(--muted);
  line-height: 1.35;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
}

.cart-summary .total {
  font-size: 1.18rem;
}

.minimum-order-note {
  padding: 10px 12px;
  margin: 8px 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(243, 169, 31, 0.45);
  background: #fff7da;
  color: #573800;
  font-weight: 800;
}

.cart-minimum-note {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(100, 32, 154, 0.18);
  background: linear-gradient(135deg, rgba(100, 32, 154, 0.08), rgba(243, 169, 31, 0.12));
  color: var(--primary);
  font-weight: 900;
  line-height: 1.35;
}

.checkout-form,
.stacked-form {
  display: grid;
  gap: 10px;
}

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

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

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.schedule-picked-product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f0f2ef;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}

tr:hover td {
  background: #fbfcfa;
}

tr.is-selected td {
  background: #fbf7ff;
}

.check-col {
  width: 44px;
  text-align: center;
}

.check-col input {
  width: 18px;
  height: 18px;
}

.own-image-bulk-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.own-image-bulk-actions strong,
.own-image-bulk-actions small {
  display: block;
}

.own-image-bulk-buttons,
.own-image-nav,
.own-image-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.own-image-controls {
  display: grid;
  gap: 8px;
}

.own-image-nav {
  display: grid;
  grid-template-columns: 34px minmax(38px, 1fr) 34px;
}

.own-image-actions {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(72px, 1fr);
}

.own-image-cell {
  display: grid;
  gap: 8px;
  align-items: start;
  min-width: 250px;
}

.own-image-thumb {
  --image-frame-inset: 8px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 132px;
  height: 112px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.own-image-thumb img {
  position: absolute;
  z-index: 1;
  inset: var(--image-frame-inset);
  width: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  height: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.own-image-thumb.is-empty span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.result-thumb > :not(img):not(a),
.missing-image-preview > :not(img),
.image-picker-preview > :not(img) {
  position: relative;
  z-index: 1;
}

.own-image-controls .icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 1.1rem;
}

.own-image-nav span {
  min-width: 38px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.editor-panel h2,
.draft-box strong {
  margin: 0;
}

.hidden {
  display: none;
}

.switch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.switch-row label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.switch-row input {
  width: auto;
  min-height: auto;
}

.draft-box {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.admin-draft-box-muted small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.compact-analytics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

.analytics-card {
  padding: 14px;
}

.analytics-card strong {
  display: block;
  font-size: 1.5rem;
}

.order-list {
  display: grid;
  gap: 14px;
}

.order-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.order-card.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(106, 32, 154, 0.14);
}

.order-detail-panel.flash-focus {
  outline: 3px solid rgba(250, 171, 37, 0.75);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(250, 171, 37, 0.18);
  transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

.order-admin-grid {
  align-items: start;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-items {
  margin: 0;
  padding-left: 18px;
}

.order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-edit-list,
.order-add-item,
.order-total-box,
.backend-status {
  display: grid;
  gap: 10px;
}

.order-edit-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(74px, 0.35fr) minmax(124px, 0.55fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-edit-row input {
  min-width: 0;
  width: 100%;
}

.order-total-box,
.backend-status {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.order-total-box div,
.backend-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.backend-status span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.backend-status.is-ok {
  border-color: rgba(0, 135, 77, 0.3);
  background: #f2fff7;
}

.backend-status.is-error {
  border-color: rgba(179, 38, 30, 0.24);
  background: #fff4f2;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}

.result-product-cell {
  display: grid;
  grid-template-columns: 132px minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 440px;
}

.result-product-cell > div:last-child {
  min-width: 0;
}

.search-result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.bulk-selection-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ff;
}

.bulk-selection-bar label {
  max-width: 160px;
}

.bulk-selection-bar input {
  min-height: 40px;
}

.bulk-selection-bar strong {
  color: var(--purple);
  margin-left: auto;
  white-space: nowrap;
}

.comparison-action-bar {
  background: #f8fafc;
  align-items: stretch;
}

.capture-history-button {
  position: relative;
  min-width: 148px;
  min-height: 48px;
  padding-inline: 18px;
  justify-content: center;
  flex: 0 0 auto;
}

.capture-history-dot {
  position: absolute;
  top: -10px;
  right: -10px;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
}

.capture-history-panel {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.capture-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.capture-history-head h3 {
  margin: 0;
}

.capture-history-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.capture-history-head-actions,
.capture-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.capture-zero-banner {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 251, 235, 0.9));
}

.capture-zero-banner strong,
.capture-zero-banner small {
  display: block;
}

.capture-zero-banner strong {
  margin-top: 6px;
  color: var(--ink);
}

.capture-zero-banner small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.capture-zero-banner-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.capture-zero-banner-meta span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.capture-zero-banner-meta b {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

@media (max-width: 680px) {
  .capture-zero-banner {
    grid-template-columns: 1fr;
  }
}

.capture-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.capture-history-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(var(--shadow-rgb), 0.08);
}

.capture-history-card.is-latest {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
}

.capture-history-card.is-archived {
  opacity: 0.72;
}

.capture-history-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.capture-history-card h3,
.capture-history-card p {
  margin: 0;
}

.capture-history-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.capture-history-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.capture-history-metrics span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.capture-history-metrics small,
.capture-history-log {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.capture-history-metrics b {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.2;
}

.capture-history-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.capture-history-log {
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
  line-height: 1.35;
}

.comparison-work-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.comparison-work-tab {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.comparison-work-tab span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.comparison-work-tab strong {
  color: var(--primary-strong);
  font-size: 1.28rem;
  line-height: 1;
}

.comparison-work-tab.is-active {
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(var(--shadow-rgb), 0.12);
}

.comparison-work-tab.is-danger.is-active {
  border-color: rgba(179, 38, 30, 0.38);
  background: #fff7f5;
}

.comparison-work-tab.is-success.is-active {
  border-color: rgba(17, 100, 54, 0.32);
  background: #f0fdf4;
}

.comparison-work-tab.is-danger strong {
  color: var(--danger);
}

.comparison-work-tab.is-success strong {
  color: #116436;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(100, 32, 154, 0.06), rgba(243, 169, 31, 0.08)),
    #fff;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.seller-fund-card {
  border-color: rgba(100, 32, 154, 0.28);
  background: linear-gradient(135deg, #1f0d27, #64209a);
  color: #fff;
}

.seller-fund-card span,
.seller-fund-card small {
  color: rgba(255, 255, 255, 0.78);
}

.seller-fund-card strong {
  color: #fff;
  word-break: break-word;
}

.manager-lock-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(100, 32, 154, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 13, 39, 0.05), rgba(100, 32, 154, 0.1)),
    #fff;
  box-shadow: var(--shadow);
}

.manager-request-list {
  display: grid;
  gap: 12px;
}

.manager-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.manager-request-card.pending {
  border-color: rgba(243, 169, 31, 0.6);
  box-shadow: 0 12px 28px rgba(243, 169, 31, 0.12);
}

.manager-request-card.approved {
  border-color: rgba(31, 168, 91, 0.3);
}

.manager-request-card.denied {
  opacity: 0.74;
}

.manager-request-card h3 {
  margin: 8px 0 4px;
  font-size: 1.08rem;
}

.manager-request-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.manager-request-metrics span {
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(100, 32, 154, 0.06);
}

.manager-request-metrics small {
  color: var(--muted);
  font-weight: 800;
}

.manager-request-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
}

.mini-list-button.active {
  border-color: var(--primary);
  background: rgba(100, 32, 154, 0.08);
  box-shadow: 0 10px 24px rgba(100, 32, 154, 0.12);
}

.stats-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.stats-charts section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bar-chart {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 2fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
}

.bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row div {
  height: 10px;
  border-radius: 999px;
  background: #f1e8f8;
  overflow: hidden;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--accent));
}

.access-table-wrap {
  margin-top: 16px;
}

.access-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.access-table a {
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.is-ok {
  background: #e7f8ed;
  color: #116436;
}

.status-pill.is-muted {
  background: #f1eef5;
  color: var(--muted);
}

.result-counter {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-strong);
  font-size: 0.86rem;
}

.danger-counter,
.danger-tag {
  background: #ffe8e5;
  color: var(--danger);
  border-color: rgba(179, 38, 30, 0.28);
}

.success-counter,
.success-tag {
  background: #e7f8ed;
  color: #116436;
  border-color: rgba(17, 100, 54, 0.24);
}

.admin-product-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.admin-product-pager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.supplier-publication-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.supplier-publication-head,
.supplier-publication-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supplier-publication-head div,
.supplier-publication-card div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.supplier-publication-head small,
.supplier-publication-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.supplier-publication-list {
  display: grid;
  gap: 8px;
}

.supplier-publication-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.attention-row td {
  background: #fff7f5;
}

.comparison-price-cell {
  display: grid;
  gap: 3px;
  min-width: 136px;
}

.comparison-price-cell small,
.comparison-price-cell span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.comparison-price-cell strong {
  color: var(--ink);
  font-size: 1rem;
}

.comparison-price-cell .is-up {
  color: var(--danger);
}

.comparison-price-cell .is-down {
  color: #116436;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.result-thumb {
  --image-frame-inset: 10px;
  position: relative;
  isolation: isolate;
  width: 112px;
  height: 92px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
}

.quick-price-cell {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.quick-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-price-input {
  width: 132px;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.quick-price-cell small {
  color: var(--muted);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.missing-image-grid {
  display: grid;
  gap: 14px;
}

.serpapi-config-form {
  margin: 10px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.google-config-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.serpapi-config-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.serpapi-config-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
}

.backup-panel {
  margin: 10px 0 16px;
  padding: 18px;
  border: 1px solid rgba(251, 184, 0, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff9e8, #ffffff 62%);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.backup-panel h3 {
  margin: 0 0 6px;
}

.backup-panel p,
.backup-panel small {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.backup-panel small {
  display: block;
  margin-top: 8px;
}

.log-lock-panel,
.admin-log-panel {
  margin: 10px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.log-lock-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px) auto;
  gap: 14px;
  align-items: end;
  background: linear-gradient(135deg, #fff9e8, #ffffff 62%);
}

.log-lock-panel h3,
.log-lock-panel p {
  margin: 0;
}

.log-lock-panel p {
  color: var(--muted);
  font-weight: 800;
}

.log-toolbar {
  align-items: end;
}

.compact-stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.admin-log-table {
  min-width: 1120px;
}

.admin-log-table td code {
  display: block;
  max-width: 340px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-size: 0.78rem;
}

.missing-image-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.missing-image-card.is-approved {
  border-color: rgba(0, 135, 77, 0.35);
  background: #f4fff8;
}

.missing-image-preview {
  --image-frame-inset: 18px;
  position: relative;
  isolation: isolate;
  height: 220px;
  min-height: 220px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  color: var(--muted);
  font-weight: 900;
}

.missing-image-preview img,
.image-option-strip img {
  position: absolute;
  z-index: 1;
  inset: var(--image-frame-inset);
  width: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  height: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.missing-image-info {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.missing-image-info h3,
.missing-image-info p {
  margin: 0;
}

.inline-image-link {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.inline-image-link input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 800;
  width: 100%;
}

.image-option-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.image-option-strip button {
  --image-frame-inset: 6px;
  position: relative;
  isolation: isolate;
  width: 72px;
  height: 62px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-option-strip button.active {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(100, 32, 154, 0.12);
}

.image-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

@media (min-width: 681px) {
  #adminImagesView .missing-image-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #adminImagesView .missing-image-card {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px;
    border-radius: 14px;
    overflow: hidden;
  }

  #adminImagesView .missing-image-preview {
    height: 220px;
    min-height: 220px;
    border-radius: 12px;
  }

  #adminImagesView .missing-image-info {
    min-width: 0;
    gap: 10px;
  }

  #adminImagesView .missing-image-info h3 {
    line-height: 1.18;
  }

  #adminImagesView .image-option-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 8px;
    border: 1px solid rgba(231, 223, 240, 0.88);
    border-radius: 12px;
    background: rgba(250, 247, 253, 0.82);
    scrollbar-width: thin;
  }

  #adminImagesView .image-option-strip button {
    flex: 0 0 72px;
    width: 72px;
    height: 62px;
  }

  #adminImagesView .image-review-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    align-items: stretch;
    margin-top: 10px;
  }

  #adminImagesView .image-review-actions button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    justify-content: center;
  }

  #adminImagesView .inline-image-link {
    grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
  }

  #adminImagesView .inline-image-link input,
  #adminImagesView .inline-image-link button {
    min-width: 0;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  #adminImagesView .inline-image-link {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  #adminImagesView .missing-image-card {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  #adminImagesView .missing-image-preview {
    height: 190px;
    min-height: 190px;
  }

  #adminImagesView .image-review-actions {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (min-width: 1101px) {
  #adminImagesView .missing-image-card {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  #adminImagesView .missing-image-preview {
    height: 240px;
    min-height: 240px;
  }
}

.product-card--showcase {
  border-color: rgba(0, 122, 145, 0.32);
  background:
    linear-gradient(180deg, rgba(232, 250, 255, 0.96), #fff 52%),
    #fff;
  animation: showcase-card-pop 7s ease-in-out infinite;
}

.product-card--featured {
  border-color: rgba(100, 32, 154, 0.38);
  background:
    radial-gradient(circle at 16% 0%, rgba(243, 169, 31, 0.16), transparent 7rem),
    linear-gradient(180deg, rgba(243, 234, 250, 0.96), #fff 54%),
    #fff;
  box-shadow: 0 18px 42px rgba(31, 13, 39, 0.16);
}

.product-card--featured::before {
  content: attr(data-ribbon);
  position: absolute;
  top: 18px;
  right: -48px;
  z-index: 2;
  width: 170px;
  transform: rotate(35deg);
  padding: 7px 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--black), var(--primary));
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.2);
}

.product-card--featured .product-image {
  background:
    radial-gradient(circle at 50% 28%, rgba(100, 32, 154, 0.12), transparent 62%),
    #fbf7ff;
}

.product-card--featured .primary-button {
  background: linear-gradient(135deg, var(--black), var(--primary));
}

.product-card--featured:hover {
  border-color: rgba(243, 169, 31, 0.45);
  box-shadow: 0 22px 50px rgba(31, 13, 39, 0.22);
}

.product-card--showcase::before {
  content: attr(data-ribbon);
  position: absolute;
  top: 18px;
  right: -48px;
  z-index: 2;
  width: 170px;
  transform: rotate(35deg);
  padding: 7px 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 1000;
  background: #00a7b8;
  color: #fff;
}

.product-card--offer::before,
.product-card--custom::before,
.product-card--featured::before,
.product-card--showcase::before {
  top: 12px;
  right: 12px;
  width: auto;
  max-width: calc(100% - 24px);
  transform: none;
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.16);
}

@keyframes showcase-card-pop {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 14px 30px rgba(0, 122, 145, 0.1);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0, 122, 145, 0.18);
  }
}

.result-thumb img {
  position: absolute;
  z-index: 1;
  inset: var(--image-frame-inset);
  width: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  height: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.result-thumb a {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.mini-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.mini-list-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-list-item small {
  color: var(--muted);
}

.mini-list-item ol {
  margin: 4px 0 0;
  padding-left: 18px;
}

.history-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.history-section-head h3 {
  margin: 0;
}

.history-section-head .ghost-button {
  flex: 0 0 auto;
}

.spaced-title {
  margin-top: 22px;
}

.settings-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid .wide {
  grid-column: 1 / -1;
}

.flush-grid {
  padding: 0;
}

.pricing-rules-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.random-merch-panel {
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(243, 169, 31, 0.28);
  background:
    radial-gradient(circle at 12% 18%, rgba(243, 169, 31, 0.18), transparent 12rem),
    linear-gradient(135deg, var(--black), #2b0a46 58%, var(--primary));
  color: #fff;
  box-shadow: 0 22px 55px rgba(31, 13, 39, 0.22);
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.random-merch-copy {
  display: grid;
  gap: 6px;
}

.random-merch-copy span,
.random-merch-copy h2,
.random-merch-copy p {
  display: block;
  margin: 0;
}

.random-merch-copy span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.random-merch-copy h2 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.random-merch-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
  line-height: 1.38;
}

.random-merch-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.random-merch-controls label {
  color: rgba(255, 255, 255, 0.86);
}

.random-merch-controls input,
.random-merch-controls select {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.random-merch-check {
  grid-column: span 2;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.random-merch-check input {
  width: 18px;
  min-height: 18px;
}

.random-merch-remove-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 2px;
}

.random-merch-remove-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.random-merch-remove-actions .ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.random-merch-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.random-merch-stats article {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.random-merch-stats span,
.random-merch-stats strong {
  display: block;
}

.random-merch-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.random-merch-stats strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.05;
}

.promo-command-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: stretch;
}

.promo-panel,
.promo-assets-panel,
.promo-list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.promo-panel {
  display: grid;
  gap: 14px;
}

.promo-panel--dark {
  color: #fff;
  border-color: rgba(243, 169, 31, 0.32);
  background:
    radial-gradient(circle at 12% 14%, rgba(243, 169, 31, 0.16), transparent 10rem),
    linear-gradient(135deg, var(--black), #2b0a46 62%, var(--primary));
}

.promo-panel--dark h3,
.promo-panel--dark label,
.promo-panel--dark span {
  color: inherit;
}

.promo-panel--dark input,
.promo-panel--dark select {
  background: rgba(255, 255, 255, 0.96);
}

.promo-mechanic-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(243, 169, 31, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.promo-mechanic-badge {
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--black), var(--primary));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 1000;
  line-height: 1.05;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.18);
}

.promo-mechanic-note,
.promo-rule-summary {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 900;
  line-height: 1.25;
}

.promo-eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.promo-inline-fields,
.promo-asset-controls,
.promo-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.promo-assets-panel {
  margin-top: 18px;
}

.promo-asset-studio {
  margin-top: 14px;
}

.promo-kind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.promo-kind-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(100, 32, 154, 0.16);
  border-radius: 8px;
  background: #fff;
}

.promo-kind-panel--offer {
  border-color: rgba(243, 169, 31, 0.32);
  background: linear-gradient(180deg, rgba(255, 249, 222, 0.72), #fff 190px);
}

.promo-kind-panel--featured {
  border-color: rgba(100, 32, 154, 0.24);
  background: linear-gradient(180deg, rgba(247, 241, 251, 0.9), #fff 190px);
}

.promo-kind-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.promo-kind-head h3 {
  margin: 2px 0 4px;
  font-size: 1rem;
  line-height: 1.15;
}

.promo-kind-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.3;
}

.promo-toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--black);
  font-weight: 900;
  white-space: nowrap;
}

.promo-toggle-line input {
  accent-color: var(--primary);
}

.promo-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.promo-upload-row label {
  min-width: 0;
}

.promo-upload-row input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

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

.promo-preview-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.promo-preview-card::before {
  content: attr(data-ribbon);
  position: absolute;
  top: 12px;
  right: -44px;
  z-index: 2;
  width: 150px;
  padding: 4px 0;
  background: var(--accent);
  color: #1d092a;
  font-size: 0.62rem;
  font-weight: 1000;
  text-align: center;
  transform: rotate(35deg);
}

.promo-preview-card.product-card--featured::before {
  background: var(--primary);
  color: #fff;
}

.promo-preview-card strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.15;
}

.promo-preview-card small {
  color: var(--muted);
  font-weight: 800;
}

.promo-preview-base {
  position: relative;
  z-index: 1;
  opacity: 0.56;
  filter: saturate(0.8);
}

.promo-editor-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(100, 32, 154, 0.12);
  border-radius: 8px;
  background: #fbf8ff;
}

.promo-empty-tools {
  padding: 8px 0;
}

.promo-asset-controls {
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: end;
}

.promo-asset-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.promo-asset-switches label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8ff;
  font-weight: 900;
}

.promo-assets-gallery,
.promo-active-grid,
.promo-history-list {
  display: grid;
  gap: 12px;
}

.promo-assets-gallery {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.promo-asset-card,
.promo-product-card,
.promo-history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.promo-asset-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.promo-asset-card.active {
  border-color: rgba(100, 32, 154, 0.56);
  box-shadow: 0 0 0 3px rgba(100, 32, 154, 0.1);
}

.promo-asset-active-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.promo-asset-active-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #1d092a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.promo-asset-active-tags .is-warn {
  background: #8a1f11;
}

.promo-asset-preview {
  position: relative;
  min-height: 120px;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #f7f1fb 25%, transparent 25%),
    linear-gradient(-45deg, #f7f1fb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f7f1fb 75%),
    linear-gradient(-45deg, transparent 75%, #f7f1fb 75%),
    #fff;
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.promo-asset-preview > img:not(.product-promo-footer) {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

.promo-asset-preview.is-editor {
  height: 180px;
  min-height: 180px;
  cursor: grab;
}

.promo-asset-preview.show-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(rgba(100, 32, 154, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 32, 154, 0.2) 1px, transparent 1px);
  background-size: 25% 25%;
}

.promo-asset-preview.is-editor:active {
  cursor: grabbing;
}

.promo-asset-preview.is-editor .product-promo-footer {
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
}

.promo-scale-field {
  gap: 6px;
}

.promo-scale-field input {
  accent-color: var(--primary);
  min-height: 34px;
}

.promo-position-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-content: end;
}

.promo-position-picker > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.promo-position-picker label,
.promo-position-picker button {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 32, 154, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 1000;
  cursor: pointer;
}

.promo-position-picker label:has(input:checked),
.promo-position-picker button.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--black), var(--primary));
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.18);
}

.promo-position-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.promo-position-picker.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-position-picker--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-dashboard-grid {
  margin-top: 18px;
  align-items: start;
}

.promo-product-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.promo-product-thumb {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background: #f7f1fb;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--primary);
  font-weight: 1000;
}

.promo-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-product-info {
  min-width: 0;
}

.promo-product-info strong,
.promo-asset-card strong,
.promo-history-item strong {
  display: block;
}

.promo-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-card-actions .is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, #1d092a, var(--primary));
  color: #fff;
}

.promo-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.promo-history-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.promo-history-item > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f7f1fb;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.76rem;
}

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

.rule-list {
  display: grid;
  gap: 8px;
}

.rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sources-list {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.category-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.category-chip {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.category-chip.is-selected {
  border-color: var(--primary);
  background: #fbf7ff;
  box-shadow: 0 0 0 2px rgba(102, 32, 154, 0.12);
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-chip small,
.muted-text {
  color: var(--muted);
  font-size: 0.82rem;
}

.category-select-row {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
  padding: 4px 0;
  touch-action: manipulation;
}

.category-select-row input {
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin-top: 1px;
  accent-color: var(--primary);
}

.category-select-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.category-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.category-actions a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.tenda-category-toggle-button {
  border-color: rgba(102, 32, 154, 0.24) !important;
  background: #f8f1ff !important;
  color: var(--primary) !important;
  min-height: 44px !important;
}

.tenda-category-toggle-button.is-selected {
  background: linear-gradient(135deg, #351044, #7b0fb2) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.custom-tab-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.custom-tab-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.custom-tab-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(100, 32, 154, 0.12);
}

.custom-tab-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.custom-tab-products .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.custom-tab-products button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 900;
}

.sync-progress {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid rgba(100, 32, 154, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(100, 32, 154, 0.08), rgba(247, 178, 0, 0.12));
}

.sync-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sync-progress-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
}

.sync-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 32, 154, 0.16);
}

.sync-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.25s ease;
}

.sync-progress p,
.sync-progress small {
  margin: 0;
  color: var(--muted);
}

.source-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.assist-action-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 46;
  display: grid;
  gap: 8px;
  justify-items: end;
  pointer-events: none;
}

.assist-action-button {
  appearance: none;
  min-width: 78px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(100, 32, 154, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 12px 26px rgba(31, 13, 39, 0.16);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: auto;
  text-align: center;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.assist-action-button:hover {
  border-color: rgba(100, 32, 154, 0.34);
  box-shadow: 0 16px 32px rgba(31, 13, 39, 0.2);
  transform: translateY(-1px);
}

.assist-action-button.top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}

.assist-action-button.top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.assist-action-button.view-back,
.assist-action-button.undo {
  min-width: 118px;
  background: linear-gradient(135deg, #ffffff, #fbf7ff);
  border-color: rgba(100, 32, 154, 0.26);
}

.assist-action-button.undo {
  color: #1f0d27;
}

.assist-action-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.assist-action-button.manual-sync {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 188px;
  min-height: 46px;
  padding: 6px 14px 6px 8px;
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(135deg, #d71920, #9f1018);
  color: #fff;
  box-shadow: 0 14px 34px rgba(215, 25, 32, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  visibility: hidden;
}

.assist-action-button.manual-sync.is-visible {
  animation: manual-sync-pulse 1.45s ease-in-out infinite;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.manual-sync-alert {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  color: #d71920;
  font-size: 1.05rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(215, 25, 32, 0.12);
}

@keyframes manual-sync-pulse {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(215, 25, 32, 0.34);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 18px 42px rgba(215, 25, 32, 0.48);
    transform: translateY(-2px) scale(1.015);
  }
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 70;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(120%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.app-footer {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(31, 188, 211, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0, rgba(31, 188, 211, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 255, 0.88));
  box-shadow: 0 18px 42px rgba(31, 13, 39, 0.08);
  color: #526070;
  font-size: 0.82rem;
  line-height: 1.55;
}

.app-footer strong,
.app-footer span {
  display: block;
}

.footer-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 188, 211, 0.16);
}

.footer-logo-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(31, 188, 211, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 24%, rgba(31, 188, 211, 0.18), transparent 42%),
    #fff;
  color: #15bcd4;
  font-size: 1.02rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 8px rgba(31, 188, 211, 0.04);
}

.app-footer strong {
  color: #111b29;
  font-size: 1.02rem;
}

.app-footer .footer-brand span {
  color: #15abc1;
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 18px;
  padding: 18px 0 14px;
}

.app-footer section {
  min-width: 0;
}

.app-footer h2 {
  margin: 0 0 8px;
  color: #111b29;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-footer p {
  margin: 0;
}

.app-footer address {
  font-style: normal;
  font-weight: 800;
}

.app-footer a {
  color: #0d9caf;
  font-weight: 950;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 188, 211, 0.14);
  color: #6d7a86;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-only.hidden {
  display: none;
}

.source-auto-sync-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.source-wait-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(108, 35, 166, 0.16);
  border-radius: 8px;
  background: #fffaf0;
}

.source-wait-card label {
  margin: 0;
}

.source-wait-card input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--primary);
}

.source-wait-card strong {
  display: block;
  color: var(--primary-strong);
  font-size: 1.15rem;
  line-height: 1;
  text-align: right;
}

.source-wait-card small {
  display: block;
  max-width: 190px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: right;
}

.tenda-main-wait-card {
  margin: 12px 0 16px;
}

.tenda-queue-card {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid rgba(102, 32, 154, 0.18);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(48, 13, 76, 0.08);
}

.tenda-queue-card strong,
.tenda-queue-card span,
.tenda-queue-card small {
  display: block;
}

.tenda-queue-card span {
  margin-top: 3px;
  color: var(--primary);
  font-weight: 800;
}

.tenda-queue-card small {
  margin-top: 3px;
  color: var(--muted);
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip {
  max-width: calc(100% - 12px) !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
}

.source-auto-sync-card .checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.source-auto-sync-card .checkbox-line input {
  width: 18px;
  height: 18px;
}

.compact-grid {
  gap: 10px;
}

.alarm-schedule-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(170px, 1fr);
  gap: 10px;
}

.alarm-weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 7px;
}

.alarm-weekday-picker label {
  position: relative;
}

.alarm-weekday-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.alarm-weekday-picker span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  cursor: pointer;
}

.alarm-weekday-picker input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.alarm-weekday-picker input:disabled + span {
  cursor: default;
}

.alternate-days-start.hidden {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(16, 11, 19, 0.62);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.hidden {
  display: none;
}

#customerModal {
  pointer-events: none;
}

#customerModal .admin-modal-card {
  pointer-events: auto;
}

.admin-modal-card {
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.tenda-auto-sync-notice-card {
  width: min(680px, 100%);
  gap: 18px;
}

.tenda-auto-sync-notice-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.tenda-auto-sync-notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.tenda-auto-sync-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.tenda-auto-sync-summary article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tenda-auto-sync-summary small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tenda-auto-sync-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.05rem;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
}

.modal-header .icon-button {
  flex: 0 0 auto;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}

.whatsapp-choice-modal {
  z-index: 75;
}

.whatsapp-choice-card {
  position: relative;
  width: min(360px, 100%);
  gap: 12px;
}

.whatsapp-choice-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.whatsapp-choice-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.whatsapp-choice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.whatsapp-choice-actions {
  display: grid;
  gap: 10px;
}

.inline-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.wa-proofshot-choice-slot {
  display: grid;
  gap: 8px;
}

.wa-proofshot-status {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
}

.wa-proofshot-status.is-ok {
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.wa-proofshot-status.is-warn {
  border-left-color: #ef4444;
  background: #fff7ed;
}

.wa-proofshot-status strong,
.wa-proofshot-status span,
.wa-proofshot-status small {
  display: block;
}

.wa-proofshot-status span,
.wa-proofshot-status small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.wa-proofshot-viewer-modal {
  z-index: 90;
}

.wa-proofshot-viewer-card {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.wa-proofshot-viewer-card img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.whatsapp-sender-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.whatsapp-sender-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 13, 39, 0.08);
}

.whatsapp-emoji-row,
.whatsapp-sender-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.whatsapp-sender-preview {
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.whatsapp-sender-proofshot {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

@media (max-width: 840px) {
  .whatsapp-sender-grid {
    grid-template-columns: 1fr;
  }
}

.customer-modal-card {
  gap: 16px;
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--soft);
  color: var(--primary);
  border: 2px solid rgba(100, 32, 154, 0.2);
  font-weight: 1000;
}

.seller-avatar[data-seller-photo-fullscreen] {
  cursor: zoom-in;
}

.seller-avatar--mini {
  width: 30px;
  height: 30px;
  border-width: 1px;
}

.seller-avatar--hero {
  width: 58px;
  height: 58px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.seller-avatar--print {
  width: 34px;
  height: 34px;
}

.seller-name-with-photo,
.seller-inline-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.seller-name-with-photo-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
  color: inherit;
}

.seller-name-with-photo--hero {
  margin: 4px 0;
  gap: 12px;
}

.seller-name-with-photo--hero .seller-name-with-photo-text {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.seller-current-card .seller-name-with-photo {
  display: inline-flex;
}

.seller-current-card .seller-name-with-photo span {
  display: inline;
}

.seller-inline-identity {
  margin-top: 3px;
}

.assisted-order-banner .seller-inline-identity {
  display: inline-flex;
}

.assisted-order-banner .seller-inline-identity span {
  display: inline;
}

.order-seller-line {
  display: grid;
  gap: 5px;
}

.seller-table-identity {
  display: flex;
  margin-top: 5px;
}

.crm-client-decision-grid .seller-name-with-photo {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.crm-client-decision-grid .seller-name-with-photo span {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.seller-photo-preview {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-modal-card {
  width: min(760px, 100%);
}

.trust-popup-card {
  width: min(560px, 100%);
  border: 1px solid rgba(243, 169, 31, 0.36);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(243, 169, 31, 0.18), transparent 16rem),
    linear-gradient(180deg, #fff, #fffaf0);
}

.trust-popup-kicker {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 168, 91, 0.12);
  color: #176833;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trust-popup-card h2 {
  color: #1f0d27;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1;
}

.trust-popup-card p {
  margin: 0;
  color: #534760;
  font-weight: 750;
  line-height: 1.45;
}

.trust-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-popup-grid div {
  padding: 12px;
  border: 1px solid rgba(100, 32, 154, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.trust-popup-grid strong,
.trust-popup-grid span {
  display: block;
}

.trust-popup-grid strong {
  color: var(--primary);
  font-size: 0.86rem;
}

.trust-popup-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
}

.theme-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: start;
}

.theme-list-panel,
.theme-editor-panel {
  min-width: 0;
}

.theme-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.theme-module-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, #64209a) 9%, #fff), #fff),
    #fff;
  box-shadow: 0 14px 30px rgba(62, 27, 91, 0.08);
}

.theme-module-card.is-active {
  border-color: var(--theme-accent, var(--accent));
  box-shadow: 0 18px 42px rgba(62, 27, 91, 0.15);
}

.theme-swatch-row {
  display: flex;
  gap: 8px;
}

.theme-swatch-row span {
  width: 42px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(31, 13, 39, 0.08);
}

.theme-swatch-row span:nth-child(3) {
  box-shadow:
    inset 0 0 0 1px rgba(31, 13, 39, 0.08),
    0 0 0 3px color-mix(in srgb, var(--theme-card-glow, var(--theme-accent, var(--accent))) 18%, transparent),
    0 0 16px color-mix(in srgb, var(--theme-card-glow, var(--theme-accent, var(--accent))) 54%, transparent);
}

.theme-module-card small {
  color: var(--theme-primary, var(--primary));
  font-weight: 950;
  text-transform: uppercase;
}

.theme-live-preview {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)), rgba(255, 255, 255, 0.96)),
    #fff;
}

.theme-live-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.theme-live-preview-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.theme-live-preview-head strong {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-live-preview-head small {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-live-preview-head span {
  min-width: 36px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha));
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 1000;
  text-align: center;
  white-space: nowrap;
}

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

.theme-preview-product-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 96px;
  padding: 6px;
  border: 1px solid rgba(var(--card-glow-rgb), var(--card-glow-border-alpha));
  border-radius: 8px;
  background: #fff;
  box-shadow:
    inset 0 0 12px rgba(var(--card-glow-rgb), var(--card-glow-inner-alpha)),
    inset 0 -10px 18px rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)),
    0 0 12px rgba(var(--card-glow-rgb), var(--card-glow-outer-alpha)),
    0 8px 18px rgba(var(--card-glow-rgb), var(--card-glow-wide-alpha)),
    0 6px 14px rgba(31, 13, 39, 0.07);
  overflow: hidden;
}

.theme-preview-product-image {
  display: grid;
  place-items: center;
  height: clamp(28px, 5vw, 42px);
  min-width: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)), transparent 62%),
    #fff;
}

.theme-preview-product-image img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.theme-preview-product-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.9), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 14px rgba(var(--card-glow-rgb), var(--card-glow-outer-alpha));
}

.theme-preview-product-card .tag {
  width: fit-content;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--primary) 11%, #fff);
  color: var(--primary);
  font-size: 0.44rem;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-preview-product-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.5rem;
  line-height: 1.12;
  font-weight: 1000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-preview-price {
  display: grid;
  gap: 1px;
  margin-top: auto;
}

.theme-preview-price small {
  color: var(--primary);
  font-size: 0.42rem;
  font-weight: 1000;
}

.theme-preview-price strong {
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 1000;
}

.theme-live-preview--compact .theme-preview-product-card {
  min-height: 86px;
  gap: 4px;
  padding: 6px;
}

.theme-live-preview--compact .theme-preview-product-image {
  height: clamp(24px, 4.5vw, 34px);
}

.theme-live-preview--compact .theme-preview-product-card h3 {
  font-size: 0.52rem;
  -webkit-line-clamp: 1;
}

.theme-live-preview--compact .theme-preview-price strong {
  font-size: 0.64rem;
}

.theme-live-preview--showcase {
  background:
    radial-gradient(circle at 16% 0, rgba(var(--card-glow-rgb), var(--card-glow-outer-alpha)), transparent 9rem),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.08)),
    #fff;
}

.theme-live-preview--showcase .theme-preview-product-card {
  border-color: rgba(var(--accent-rgb), 0.34);
  background:
    radial-gradient(circle at 18% 0, rgba(var(--accent-rgb), 0.13), transparent 4rem),
    #fff;
}

.theme-live-preview--showcase .theme-preview-product-card .tag {
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  color: var(--primary);
}

@media (max-width: 520px) {
  .theme-live-preview {
    padding: 7px;
  }

  .theme-preview-grid {
    gap: 6px;
  }

  .theme-preview-product-card {
    min-height: 88px;
    padding: 5px;
  }

  .theme-preview-product-image {
    height: clamp(24px, 9vw, 34px);
  }

  .theme-preview-product-card h3 {
    font-size: 0.48rem;
  }

  .theme-preview-price strong {
    font-size: 0.58rem;
  }
}

.theme-module-card h3 {
  margin: 0;
  color: #1f0d27;
}

.theme-module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.theme-message-preview {
  min-height: 74px;
  padding: 10px;
  border-left: 4px solid var(--theme-accent, var(--accent));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: #51445b;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.theme-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.seller-choice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.seller-choice-card .seller-avatar {
  width: 76px;
  height: 76px;
  font-size: 1.5rem;
}

.seller-choice-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.access-choice-grid {
  display: grid;
  gap: 12px;
}

.access-choice-card {
  width: 100%;
  border: 1px solid rgba(100, 32, 154, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #fff 0%, #fbf7ff 100%);
  color: var(--black);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.access-choice-card:hover {
  border-color: rgba(100, 32, 154, 0.42);
  box-shadow: 0 12px 26px rgba(48, 13, 76, 0.1);
  transform: translateY(-1px);
}

.access-choice-card strong {
  font-size: 1.05rem;
}

.access-choice-card span {
  color: var(--muted);
  line-height: 1.35;
}

.image-picker {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-picker-preview {
  --image-frame-inset: 18px;
  position: relative;
  isolation: isolate;
  height: 190px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(100, 32, 154, 0.12);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
}

.image-picker-preview img {
  position: absolute;
  z-index: 1;
  inset: var(--image-frame-inset);
  width: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  height: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.image-picker-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.image-picker-actions span {
  min-width: 46px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-modal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.minimum-order-card {
  width: min(460px, 100%);
}

.minimum-order-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.minimum-order-summary span {
  color: var(--muted);
  font-weight: 800;
}

.minimum-order-summary strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.store-image-fullscreen-card {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.store-image-fullscreen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#storeImageFullscreenModal {
  z-index: 230;
}

#storeImageFullscreenModal[data-fullscreen-kind="seller-photo"] {
  z-index: 2147483647;
}

#storeImageFullscreenModal[data-fullscreen-kind="seller-photo"] .store-image-fullscreen-card {
  position: relative;
  z-index: 1;
}

#closeStoreImageFullscreen {
  position: relative;
  z-index: 3;
}

.store-image-fullscreen-head small,
.store-image-fullscreen-head h2 {
  display: block;
}

.store-image-fullscreen-head small {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-image-fullscreen-head h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
}

.store-image-fullscreen-frame {
  min-height: min(72vh, 720px);
  display: grid;
  align-items: stretch;
  padding: 12px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(100, 32, 154, 0.08), rgba(243, 169, 31, 0.08)),
    #fbf8fc;
  overflow: hidden;
}

.store-image-fullscreen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  width: 100%;
  min-height: min(72vh, 680px);
}

.store-image-clean-frame {
  display: grid;
  place-items: center;
  min-height: min(72vh, 680px);
  border: 1px solid rgba(100, 32, 154, 0.15);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(31, 13, 39, 0.16);
  overflow: hidden;
}

.store-image-clean-frame img {
  display: block;
  width: min(100%, 760px);
  height: min(68vh, 620px);
  object-fit: contain;
  padding: clamp(14px, 3vw, 34px);
}

.seller-photo-fullscreen-frame img {
  border-radius: 12px;
  padding: clamp(10px, 2vw, 22px);
}

.seller-photo-fullscreen-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.store-image-fullscreen-info {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(100, 32, 154, 0.16);
  border-radius: 10px;
  background: #fff;
}

.store-image-fullscreen-info h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.fullscreen-price-line {
  padding: 12px;
  border-radius: 10px;
  background: rgba(100, 32, 154, 0.06);
}

.fullscreen-price-line strong {
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.store-image-fullscreen-note {
  color: var(--muted);
  font-weight: 800;
}

.store-image-fullscreen-frame .product-promo-footer {
  display: none !important;
}

.print-sheet {
  display: none;
}

.print-document {
  padding: 24px;
  color: #17121f;
  background: #fff;
  font-family: Arial, sans-serif;
}

.print-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #6a209a;
  padding-bottom: 14px;
  gap: 20px;
}

.print-header img {
  width: 130px;
  max-height: 100px;
  object-fit: contain;
}

.print-header h1 {
  margin: 4px 0;
  font-size: 28px;
}

.print-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.print-info-grid div,
.print-total-box,
.print-checklist {
  border: 1px solid #ddd3e8;
  border-radius: 8px;
  padding: 10px;
}

.print-info-grid .wide {
  grid-column: 1 / -1;
}

.print-info-grid strong,
.print-info-grid span {
  display: block;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.print-table th,
.print-table td {
  border: 1px solid #ddd3e8;
  padding: 8px;
  text-align: left;
}

.print-table th {
  background: #f3eafa;
}

.print-item-details {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  color: #554b61;
  font-size: 11px;
  line-height: 1.35;
}

.print-item-details span {
  overflow-wrap: anywhere;
}

.print-total-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-left: auto;
}

.print-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #fff6d8;
  font-weight: 700;
}

.print-checklist {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.danger {
  color: var(--danger);
}

@media (min-width: 1101px) {
  body {
    background:
      radial-gradient(circle at 0 0, rgba(243, 169, 31, 0.12), transparent 30rem),
      linear-gradient(180deg, #fff, #fbf8fc 46%, #f7f1fb);
    overflow-x: clip;
  }

  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
    overflow-x: clip;
  }

  .sidebar {
    gap: 16px;
    padding: 18px 14px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .brand {
    gap: 10px;
    padding: 0 4px 4px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.08;
  }

  .brand small {
    display: block;
    font-size: 0.72rem;
    line-height: 1.24;
  }

  .main-nav {
    gap: 6px;
    padding-right: 2px;
  }

  .nav-button {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.87rem;
    font-weight: 820;
  }

  .nav-button.active {
    border-color: rgba(243, 169, 31, 0.7);
    background: linear-gradient(135deg, rgba(243, 169, 31, 0.24), rgba(255, 255, 255, 0.08));
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .operator-box {
    margin-top: 0;
    padding: 12px;
    gap: 2px;
    font-size: 0.82rem;
  }

  .content {
    padding: 18px 20px 28px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 32;
    margin: -18px -20px 14px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(231, 223, 240, 0.92);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(62, 27, 91, 0.08);
    backdrop-filter: blur(14px);
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: 1.58rem;
    line-height: 1.08;
  }

  .topbar-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .topbar-actions button,
  .topbar-actions a {
    min-height: 40px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .cart-top-button {
    min-height: 46px;
    padding: 7px 12px 7px 8px;
    border-radius: 14px;
  }

  .cart-top-icon {
    width: 30px;
    height: 30px;
  }

  .cart-top-icon svg {
    width: 20px;
    height: 20px;
  }

  .cart-top-copy strong {
    font-size: 0.86rem;
  }

  .cart-top-copy small {
    font-size: 0.7rem;
  }

  .hero-strip {
    min-height: 132px;
    margin-bottom: 14px;
    padding: 16px 20px;
    border-radius: 12px;
  }

  .hero-copy {
    gap: 5px;
    max-width: 720px;
  }

  .hero-copy span {
    font-size: 0.68rem;
  }

  .hero-copy strong {
    font-size: clamp(1.28rem, 2.2vw, 1.92rem);
    max-width: 760px;
  }

  .hero-copy p {
    max-width: 720px;
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .hero-logo-frame {
    width: min(20vw, 220px);
    min-width: 150px;
    height: 150px;
  }

  .hero-logo {
    width: auto;
    max-width: 100%;
    max-height: 150px;
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
    gap: 16px;
  }

  .catalog-area,
  .cart-panel,
  .editor-panel,
  .order-card,
  .settings-grid,
  .sources-list,
  .analytics-card {
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(62, 27, 91, 0.08);
  }

  .catalog-area {
    padding: 14px;
  }

  #storeView .catalog-area > .toolbar {
    position: sticky;
    top: 72px;
    z-index: 24;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(150px, 190px);
    gap: 10px;
    align-items: end;
    margin: -14px -14px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(231, 223, 240, 0.92);
    border-radius: 12px 12px 10px 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(62, 27, 91, 0.08);
    backdrop-filter: blur(12px);
  }

  #storeView .catalog-area > .toolbar .search-field {
    min-width: 0;
  }

  #storeView .catalog-area > .toolbar input,
  #storeView .catalog-area > .toolbar select {
    min-height: 40px;
    border-radius: 10px;
  }

  .delivery-note {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .tabs {
    gap: 8px;
    margin: 8px 0 14px;
  }

  .tab-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .section-heading {
    margin: 14px 0 8px;
  }

  .section-heading h2 {
    margin-bottom: 0;
    font-size: 1.16rem;
  }

  #featuredProducts {
    padding: 10px;
    border-radius: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 12px;
  }

  .product-card {
    min-height: 0;
    gap: 7px;
    padding: 10px;
    border-radius: 12px;
  }

  .product-card > * {
    min-width: 0;
  }

  .product-card:hover {
    box-shadow: 0 18px 36px rgba(62, 27, 91, 0.13);
    transform: translateY(-2px);
  }

  .product-image {
    --image-frame-inset: 10px;
    height: 132px;
    border-radius: 10px;
  }

  .product-image--missing {
    --image-frame-inset: 6px;
  }

  .tag-row {
    gap: 4px;
    min-width: 0;
  }

  .tag {
    max-width: 100%;
    padding: 2px 6px;
    overflow: hidden;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card h3 {
    min-height: 2.34em;
    font-size: 0.92rem;
    line-height: 1.17;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .price-line {
    gap: 1px;
  }

  .price-line strong {
    font-size: 1.08rem;
  }

  .price-line small,
  .product-card > small {
    font-size: 0.76rem;
  }

  .admin-cost-line {
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 6px 7px;
    font-size: 0.72rem;
    line-height: 1.12;
  }

  .admin-cost-line span {
    min-width: 0;
  }

  .admin-cost-line strong {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .quick-price-cell--card {
    margin: 5px 0;
    padding: 7px;
  }

  .product-qty-control {
    gap: 6px;
  }

  .product-qty-row {
    grid-template-columns: 34px minmax(48px, 1fr) 34px;
    gap: 6px;
  }

  .product-qty-row button,
  .product-qty-row input,
  .bulk-min-button,
  .product-card .primary-button {
    min-height: 36px;
    border-radius: 9px;
  }

  .cart-panel {
    top: 88px;
    display: grid;
    grid-template-rows: auto minmax(110px, 1fr) auto auto;
    max-height: calc(100vh - 104px);
    overflow: hidden;
    padding: 14px;
  }

  .cart-panel .panel-title {
    margin-bottom: 4px;
  }

  .cart-panel h2 {
    font-size: 1.12rem;
  }

  .cart-items {
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
  }

  .cart-item {
    gap: 6px;
    padding-bottom: 9px;
    font-size: 0.86rem;
  }

  .qty-row button {
    width: 28px;
    height: 28px;
  }

  .cart-summary {
    gap: 6px;
    margin: 10px 0;
    padding-top: 10px;
    font-size: 0.9rem;
  }

  .cart-summary .total {
    font-size: 1.08rem;
  }

  .customer-checkout-card {
    gap: 8px;
    padding: 11px;
    border-radius: 10px;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
    gap: 16px;
  }

  .table-wrap {
    border-radius: 12px;
  }

  th,
  td {
    padding: 10px;
  }

  .view.active > .panel-title {
    position: sticky;
    top: 72px;
    z-index: 23;
    min-width: 0;
    margin: -4px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(231, 223, 240, 0.88);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(62, 27, 91, 0.08);
    backdrop-filter: blur(12px);
  }

  .view.active > .panel-title h2 {
    margin: 0;
    font-size: 1.18rem;
  }

  .view.active > .panel-title p {
    margin: 2px 0 0;
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .view.active > .panel-title .order-actions {
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .view.active > .panel-title .order-actions label,
  .view.active > .panel-title .order-export-select {
    min-width: 140px;
    max-width: 190px;
  }

  .view.active > .panel-title button,
  .view.active > .panel-title select,
  .view.active > .panel-title input,
  .toolbar button,
  .toolbar input,
  .toolbar select {
    min-height: 38px;
    border-radius: 10px;
  }

  .admin-grid > section > .toolbar,
  #adminImagesView > .toolbar,
  #adminSourcesView .toolbar,
  .bulk-actions {
    position: sticky;
    top: 72px;
    z-index: 18;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid rgba(231, 223, 240, 0.84);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(62, 27, 91, 0.07);
    backdrop-filter: blur(12px);
  }

  #adminImagesView > .toolbar {
    position: static;
  }

  .editor-panel {
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow: auto;
    padding: 14px;
  }

  .editor-panel h2 {
    font-size: 1.14rem;
  }

  .stacked-form,
  .checkout-form {
    gap: 9px;
  }

  label {
    gap: 5px;
    font-size: 0.8rem;
  }

  input,
  select,
  textarea {
    min-height: 38px;
    border-radius: 9px;
    padding: 8px 10px;
  }

  textarea {
    min-height: 72px;
  }

  .stats-grid,
  .analytics-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
  }

  .stat-card,
  .analytics-card {
    padding: 12px;
    border-radius: 12px;
  }

  .stat-card strong,
  .analytics-card strong {
    margin-top: 4px;
    font-size: 1.18rem;
  }

  .seller-negotiation-box {
    padding: 9px;
    gap: 8px;
  }

  .seller-negotiation-box > div {
    padding: 7px 8px;
  }

  .manager-lock-panel,
  .manager-request-card {
    grid-template-columns: 1fr;
  }

  .manager-request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stats-charts {
    gap: 12px;
  }

  .stats-charts section {
    padding: 12px;
    border-radius: 12px;
  }

  .order-card {
    padding: 12px;
    gap: 9px;
    border-radius: 12px;
  }

  .order-head {
    gap: 8px;
  }

  .order-actions {
    gap: 8px;
  }

  .order-actions button,
  .row-actions button {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 0.84rem;
  }

  .order-admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  }

  .order-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 0.35fr) minmax(116px, 0.65fr);
    padding: 8px;
  }

  .order-edit-row strong {
    grid-column: 1 / -1;
  }

  .order-edit-row span {
    font-size: 0.82rem;
    justify-self: start;
  }

  .order-edit-row button {
    grid-column: 2 / 4;
    justify-self: stretch;
  }

  .own-image-bulk-actions,
  .backend-status,
  .bulk-selection-bar,
  .serpapi-config-form,
  .backup-panel,
  .pricing-rules-panel,
  .sources-list,
  .reports-control-grid,
  .report-preview {
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(62, 27, 91, 0.07);
  }

  .missing-image-grid {
    gap: 12px;
  }

  .missing-image-card {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
  }

  .missing-image-preview {
    height: 170px;
    min-height: 170px;
    border-radius: 12px;
  }

  .image-option-strip button {
    width: 64px;
    height: 56px;
  }

  .own-image-thumb {
    width: 112px;
    height: 96px;
    border-radius: 10px;
  }

  .own-image-cell {
    min-width: 220px;
  }

  .result-product-cell {
    grid-template-columns: 112px minmax(220px, 1fr);
    gap: 12px;
    min-width: 360px;
  }

  .result-thumb {
    width: 96px;
    height: 82px;
    border-radius: 10px;
  }

  .quick-price-cell {
    min-width: 160px;
  }

  .quick-price-input {
    width: 104px;
  }

  .settings-grid,
  .pricing-rules-panel {
    padding: 14px;
    gap: 12px;
  }

  .reports-control-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .report-section-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
  }

  .report-section-card,
  .report-view-section,
  .report-view-summary article {
    border-radius: 12px;
  }

  .report-section-card {
    padding: 12px;
  }

  .supplier-empty-panel {
    border-radius: 12px;
    padding: 16px;
  }

  .supplier-tabs {
    gap: 8px;
    margin-bottom: 12px;
  }

  .supplier-tab-button {
    min-height: 38px;
    border-radius: 10px;
  }

  .mini-list {
    max-height: 300px;
  }

  .mini-list-item,
  .custom-tab-card,
  .source-row {
    border-radius: 12px;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 130;
    height: auto;
    padding: 10px 14px;
    border-radius: 0 0 18px 18px;
    background:
      radial-gradient(circle at 92% 20%, rgba(243, 169, 31, 0.22), transparent 7rem),
      linear-gradient(135deg, #2b0a46, #100b13);
    box-shadow: 0 12px 28px rgba(22, 10, 31, 0.22);
  }

  .brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 54px;
  }

  .brand .mobile-nav-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  .brand > div {
    grid-column: 2;
    grid-row: 1;
  }

  .brand .brand-mark {
    grid-column: 3;
    grid-row: 1;
  }

  .mobile-nav-toggle {
    display: grid;
    place-items: center;
    align-content: center;
    width: 46px;
    height: 46px;
    gap: 5px;
    padding: 0;
    border: 2px solid rgba(243, 169, 31, 0.72);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 6, 19, 0.18);
  }

  .mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background: var(--accent);
    color: #241304;
    border-color: var(--accent);
  }

  .operator-box {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 170;
    display: grid;
    align-content: start;
    width: min(94vw, 430px);
    max-height: calc(100dvh - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 14px 18px;
    border-radius: 0 22px 22px 0;
    background:
      radial-gradient(circle at 10% 10%, rgba(243, 169, 31, 0.18), transparent 9rem),
      linear-gradient(180deg, #2b0a46, #100b13);
    border: 1px solid rgba(243, 169, 31, 0.32);
    box-shadow: 24px 0 46px rgba(31, 13, 39, 0.38);
    transform: translateX(calc(-100% - 22px));
    transition: transform 0.22s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }

  .main-nav .nav-button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .mobile-nav-open .main-nav {
    transform: translateX(0);
  }

  .mobile-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 160;
    border: 0;
    background: rgba(16, 11, 19, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .mobile-nav-open .mobile-nav-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    overflow-x: clip;
  }

  .product-card--offer::before,
  .product-card--custom::before,
  .product-card--featured::before,
  .product-card--showcase::before {
    top: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    transform: none;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.62rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(31, 13, 39, 0.16);
  }

  .store-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .seller-work-grid {
    grid-template-columns: 1fr;
  }

  .seller-client-list {
    max-height: none;
  }

  .cart-panel,
  .editor-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at 50% -12%, rgba(243, 169, 31, 0.24), transparent 16rem),
      linear-gradient(180deg, #fff, #fbf7ff 42%, #f4eef8);
    padding-bottom: 18px;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 130;
    height: auto;
    padding: 10px 14px;
    border-radius: 0 0 18px 18px;
    background:
      radial-gradient(circle at 92% 20%, rgba(243, 169, 31, 0.22), transparent 7rem),
      linear-gradient(135deg, #2b0a46, #100b13);
    box-shadow: 0 12px 28px rgba(22, 10, 31, 0.22);
  }

  .brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 54px;
  }

  .brand .mobile-nav-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  .brand > div {
    grid-column: 2;
    grid-row: 1;
  }

  .brand .brand-mark {
    grid-column: 3;
    grid-row: 1;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    background: var(--accent);
    color: var(--black);
    box-shadow: 0 0 0 5px rgba(243, 169, 31, 0.13);
  }

  .brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.05;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .mobile-nav-toggle {
    display: grid;
    place-items: center;
    align-content: center;
    width: 42px;
    height: 42px;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(243, 169, 31, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 6, 19, 0.18);
  }

  .mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background: var(--accent);
    color: #241304;
    border-color: var(--accent);
  }

  .operator-box {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 170;
    display: grid;
    align-content: start;
    width: min(94vw, 430px);
    max-height: calc(100dvh - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 14px 18px;
    border-radius: 0 22px 22px 0;
    background:
      radial-gradient(circle at 10% 10%, rgba(243, 169, 31, 0.18), transparent 9rem),
      linear-gradient(180deg, #2b0a46, #100b13);
    border: 1px solid rgba(243, 169, 31, 0.32);
    box-shadow: 24px 0 46px rgba(31, 13, 39, 0.38);
    transform: translateX(calc(-100% - 22px));
    transition: transform 0.22s ease;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }

  .main-nav .nav-button {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 0.78rem;
    line-height: 1.05;
  }

  .mobile-nav-open .main-nav {
    transform: translateX(0);
  }

  .mobile-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 160;
    border: 0;
    background: rgba(16, 11, 19, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .mobile-nav-open .mobile-nav-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    overflow-x: clip;
  }

  .product-card--offer::before,
  .product-card--custom::before,
  .product-card--featured::before,
  .product-card--showcase::before {
    top: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    transform: none;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.62rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(31, 13, 39, 0.16);
  }

  .toast {
    right: 14px;
    bottom: calc(192px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 28px);
  }

  .assist-action-dock {
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    gap: 8px;
    max-width: calc(100vw - 28px);
  }

  .assist-action-button {
    min-width: 72px;
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.72rem;
    box-shadow: 0 10px 22px rgba(31, 13, 39, 0.18);
  }

  .assist-action-button.view-back,
  .assist-action-button.undo {
    min-width: 104px;
  }

  .nav-button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 8px 12px;
    border-radius: 14px;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.15;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-button.active {
    background: linear-gradient(135deg, var(--accent), #ffcf48);
    color: #221204;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .content {
    padding: 18px 12px 76px;
  }

  .app-footer {
    margin: 26px 0 14px;
    padding: 14px;
    font-size: 0.74rem;
  }

  .topbar {
    position: static;
    z-index: 20;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    margin: -6px -4px 14px;
    padding: 10px;
    border: 1px solid rgba(231, 223, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(62, 27, 91, 0.1);
    backdrop-filter: blur(14px);
  }

  .assisted-order-mode .topbar {
    margin: -6px -4px 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .assisted-order-banner {
    position: sticky;
    top: 8px;
    z-index: 22;
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 12px;
  }

  .assisted-order-status {
    align-items: flex-start;
    gap: 8px;
  }

  .assisted-mode-pill {
    padding: 7px 9px;
    font-size: 0.66rem;
  }

  .assisted-order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .assisted-order-actions button {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .assisted-order-mode #storeView .toolbar {
    top: 8px;
    padding: 10px;
    border-radius: 12px;
  }

  .topbar h1 {
    font-size: 1.35rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: end;
  }

  .topbar-actions button,
  .topbar-actions a,
  .toolbar label,
  .toolbar button {
    width: 100%;
  }

  .topbar-actions .whatsapp-button {
    grid-column: 1 / -1;
    min-height: 44px;
    border-radius: 14px;
  }

  #customerAccessButton {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .cart-top-button {
    position: relative;
    inset: auto;
    z-index: 1;
    width: auto !important;
    min-height: 58px;
    padding: 9px 12px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(100, 32, 154, 0.36);
  }

  .cart-top-copy {
    display: none;
  }

  .cart-top-icon {
    width: 36px;
    height: 36px;
  }

  #cartCount {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 28px;
    height: 28px;
    background: var(--accent);
    color: #251303;
    border: 2px solid #fff;
    font-size: 0.82rem;
  }

  .hero-strip {
    min-height: auto;
    padding: 16px;
    border-radius: 18px;
    gap: 8px;
  }

  .hero-copy {
    gap: 6px;
  }

  .hero-copy strong {
    font-size: 1.32rem;
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: 0.9rem;
  }

  .hero-logo-frame {
    width: min(68%, 210px);
  }

  .store-layout,
  .admin-grid {
    display: block;
  }

  .catalog-area,
  .cart-panel,
  .editor-panel,
  .order-card,
  .analytics-card,
  .settings-grid {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(62, 27, 91, 0.08);
  }

  .catalog-area {
    padding: 14px;
  }

  .cart-panel,
  .editor-panel {
    position: static;
    margin-top: 14px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #storeView .catalog-area > .toolbar {
    position: sticky;
    top: var(--store-toolbar-sticky-top, 132px);
    z-index: 34;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 128px);
    align-items: end;
    margin: -14px -14px 14px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(231, 223, 240, 0.92);
    border-radius: 16px 16px 14px 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 26px rgba(62, 27, 91, 0.1);
    backdrop-filter: blur(14px);
  }

  #storeView .catalog-area > .toolbar > label > span {
    display: none;
  }

  #storeView .catalog-area > .toolbar .search-field {
    min-width: 0;
  }

  #storeView .catalog-area > .toolbar input,
  #storeView .catalog-area > .toolbar select {
    min-height: 46px;
    padding: 9px 12px;
  }


  input,
  select,
  textarea {
    min-height: 48px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .delivery-note {
    border-radius: 16px;
    font-size: 0.9rem;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 12px -4px 18px;
    padding: 0 4px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  #featuredProducts {
    padding: 10px;
    border-radius: 18px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    min-height: auto;
    padding: 12px;
    border-radius: 18px;
    gap: 9px;
  }

  .product-image {
    height: 230px;
    padding: 0;
    border-radius: 16px;
  }

  .product-card h3 {
    font-size: 1.08rem;
  }

  .price-line strong {
    font-size: 1.35rem;
  }

  .product-qty-row {
    grid-template-columns: 54px minmax(80px, 1fr) 54px;
    gap: 10px;
  }

  .product-qty-row button,
  .product-qty-row input,
  .bulk-min-button {
    min-height: 50px;
    border-radius: 14px;
    font-size: 1.1rem;
  }

  .product-card .primary-button {
    min-height: 54px;
    border-radius: 14px;
    font-size: 1.04rem;
  }

  .signup-banner {
    border-radius: 18px;
    padding: 18px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .admin-modal-card {
    width: 100%;
    max-height: calc(100vh - 30px);
    overflow: auto;
    border-radius: 22px 22px 14px 14px;
  }

  .store-image-fullscreen-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 12px;
    border-radius: 20px 20px 12px 12px;
  }

  .store-image-fullscreen-head {
    align-items: flex-start;
    padding-right: 88px;
  }

  #closeStoreImageFullscreen {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    min-width: 78px;
    min-height: 42px;
    border-color: rgba(100, 32, 154, 0.28);
    background: #fff;
    box-shadow: 0 12px 26px rgba(31, 13, 39, 0.18);
  }

  .store-image-fullscreen-frame {
    min-height: 62dvh;
    padding: 8px;
  }

  .store-image-fullscreen-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
  }

  .store-image-clean-frame {
    min-height: min(58dvh, 520px);
    border-radius: 16px;
  }

  .store-image-clean-frame img {
    width: 100%;
    height: min(54dvh, 480px);
    padding: clamp(10px, 4vw, 20px);
  }

  .store-image-fullscreen-info {
    padding: 12px;
    border-radius: 16px;
  }

  .store-image-fullscreen-info h3 {
    font-size: 1.2rem;
  }

  .fullscreen-price-line strong {
    font-size: 1.45rem;
  }

  .inline-config-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .source-wait-card {
    grid-template-columns: 1fr;
  }

  .tenda-queue-card {
    grid-template-columns: 1fr;
  }

  .source-wait-card strong,
  .source-wait-card small,
  .tenda-queue-card small {
    max-width: none;
    text-align: left;
  }

  .admin-access-button {
    position: static;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .backup-panel {
    grid-template-columns: 1fr;
  }

  .backup-panel button {
    width: 100%;
  }

  .pricing-rule-columns {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .result-product-cell,
  .missing-image-card {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .inline-image-link {
    grid-template-columns: 1fr;
  }

  .result-thumb {
    width: 100%;
    height: 150px;
  }

  .source-row {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-logo-frame {
    width: min(100%, 330px);
    min-width: 0;
    align-self: center;
  }

  .panel-title {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .seller-current-card {
    display: grid;
    gap: 14px;
    padding: 15px;
  }

  .seller-current-card strong {
    font-size: 1.34rem;
  }

  .seller-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .seller-hero-actions button:first-child {
    grid-column: 1 / -1;
  }

  .seller-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .seller-stat-card,
  .seller-fund-card {
    min-height: 104px;
    padding: 12px;
  }

  .seller-stat-card strong,
  .seller-fund-card strong {
    font-size: 1.06rem;
    word-break: break-word;
  }

  .seller-work-grid {
    gap: 12px;
  }

  .seller-assist-card,
  .seller-clients-card,
  .seller-order-workspace,
  .seller-orders-section {
    padding: 12px;
    border-radius: 8px;
  }

  .seller-order-workspace,
  .seller-orders-section {
    margin-top: 12px;
  }

  .seller-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .seller-flow-steps span {
    padding: 8px 6px;
    text-align: center;
    font-size: 0.76rem;
  }

  .seller-form-split {
    grid-template-columns: 1fr;
  }

  .seller-pricing-form {
    grid-template-columns: 1fr;
  }

  .seller-pricing-results {
    grid-template-columns: 1fr;
  }

  .seller-start-order-button {
    min-height: 50px;
  }

  .panel-title .order-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .own-image-bulk-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .own-image-bulk-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .own-image-bulk-buttons button {
    width: 100%;
    min-height: 42px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  #adminOwnProductsView .table-wrap {
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  #adminOwnProductsView table,
  #adminOwnProductsView thead,
  #adminOwnProductsView tbody,
  #adminOwnProductsView tr,
  #adminOwnProductsView th,
  #adminOwnProductsView td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #adminOwnProductsView thead {
    display: none;
  }

  #adminOwnProductsView tr {
    position: relative;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(62, 27, 91, 0.08);
  }

  #adminOwnProductsView tr.is-selected {
    border-color: rgba(100, 32, 154, 0.32);
    background: #fbf7ff;
  }

  #adminOwnProductsView td {
    border-bottom: 0;
    padding: 5px 0;
  }

  #adminOwnProductsView td.check-col {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    padding: 0;
  }

  #adminOwnProductsView td:nth-child(2) {
    padding-right: 44px;
    font-size: 1.05rem;
  }

  #adminOwnProductsView td:nth-child(3)::before,
  #adminOwnProductsView td:nth-child(4)::before,
  #adminOwnProductsView td:nth-child(5)::before,
  #adminOwnProductsView td:nth-child(7)::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  #adminOwnProductsView td:nth-child(3)::before {
    content: "Categoria";
  }

  #adminOwnProductsView td:nth-child(4)::before {
    content: "Preço";
  }

  #adminOwnProductsView td:nth-child(5)::before {
    content: "Estoque";
  }

  #adminOwnProductsView td:nth-child(7)::before {
    content: "Status";
  }

  #adminOwnProductsView .own-image-cell {
    min-width: 0;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  #adminOwnProductsView .own-image-thumb {
    width: 100%;
    height: 150px;
  }

  #adminOwnProductsView .own-image-controls {
    display: grid;
    gap: 8px;
  }

  #adminOwnProductsView .own-image-nav {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  #adminOwnProductsView .own-image-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #adminOwnProductsView .own-image-nav span {
    align-self: center;
    min-width: 0;
  }

  #adminOwnProductsView .own-image-controls button[data-search-own-image],
  #adminOwnProductsView .own-image-controls button[data-apply-own-image] {
    width: 100%;
  }

  .report-preview {
    padding: 12px;
  }

  .report-preview-head,
  .report-view-section-head,
  .report-view-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-view-actions button {
    width: 100%;
  }

  .report-view-table {
    min-width: 680px;
  }

  .view.active > .panel-title,
  .admin-grid > section > .panel-title,
  .spaced-title {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid rgba(231, 223, 240, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(62, 27, 91, 0.07);
  }

  .view.active > .panel-title h2,
  .admin-grid > section > .panel-title h2 {
    font-size: 1.24rem;
    line-height: 1.1;
  }

  .view.active > .panel-title p,
  .admin-grid > section > .panel-title p {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .table-wrap {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(62, 27, 91, 0.08);
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 10px;
  }

  .admin-grid > section > .toolbar,
  #adminImagesView > .toolbar,
  #adminSourcesView .toolbar,
  .bulk-actions,
  .reports-control-grid,
  .serpapi-config-form,
  .inline-config-card,
  .backend-status,
  .bulk-selection-bar {
    padding: 12px;
    border: 1px solid rgba(231, 223, 240, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(62, 27, 91, 0.07);
  }

  .admin-grid > section > .toolbar label,
  #adminImagesView > .toolbar label,
  #adminSourcesView .toolbar label {
    min-width: 0;
  }

  .stats-grid,
  .analytics-grid,
  .report-section-grid,
  .report-view-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seller-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-card,
  .analytics-card,
  .report-section-card,
  .report-view-summary article {
    padding: 12px;
    border-radius: 14px;
  }

  .stat-card strong,
  .analytics-card strong {
    font-size: 1.18rem;
  }

  .order-card,
  .mini-list-item,
  .custom-tab-card,
  .source-row,
  .supplier-empty-panel,
  .report-preview,
  .report-view-section,
  .settings-grid,
  .pricing-rules-panel,
  .sources-list,
  .backup-panel {
    border-radius: 16px;
  }

  .order-actions,
  .row-actions,
  .image-review-actions,
  .category-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .order-actions button,
  .row-actions button,
  .image-review-actions button,
  .category-actions button,
  .modal-actions button {
    width: 100%;
  }

  .order-edit-row {
    grid-template-columns: 1fr;
  }

  .order-total-box div,
  .backend-status {
    align-items: stretch;
    flex-direction: column;
  }

  .serpapi-config-form,
  .reports-control-grid,
  .supplier-empty-panel,
  .pricing-rule-columns,
  .settings-grid,
  .backup-panel {
    grid-template-columns: 1fr;
  }

  .missing-image-grid {
    gap: 12px;
  }

  .missing-image-card {
    padding: 12px;
    border-radius: 16px;
  }

  .missing-image-preview,
  .result-thumb,
  #adminOwnProductsView .own-image-thumb {
    height: 170px;
    border-radius: 14px;
  }

  .image-option-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .image-option-strip button {
    flex: 0 0 76px;
    height: 64px;
  }

  .inline-image-link {
    gap: 8px;
  }

  .own-image-bulk-buttons,
  #adminOwnProductsView .own-image-actions {
    grid-template-columns: 1fr;
  }

  .supplier-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .supplier-tab-button {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }

  .report-view-table-wrap,
  .access-table-wrap {
    margin: 0 -2px;
    border-radius: 14px;
  }
}

@media print {
  body > *:not(.print-sheet) {
    display: none !important;
  }

  .print-sheet:not(.hidden) {
    display: block !important;
  }

  .print-document {
    padding: 0;
  }

  @page {
    size: A4;
    margin: 12mm;
  }
}

.link-button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(22, 163, 74, 0.45);
  text-underline-offset: 3px;
}

.link-button:hover {
  color: #16a34a;
}

.quick-price-cell--card {
  background: #fffaf2;
  border: 1px dashed rgba(100, 32, 154, 0.25);
  border-radius: 8px;
  margin: 10px 0;
  padding: 8px;
}

.quick-price-cell--card small {
  color: #7a6b82;
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.personal-campaign {
  background: linear-gradient(135deg, #21002f, #6d21a8 55%, #ffb703);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(100, 32, 154, 0.22);
  color: #fff;
  margin: 18px 0;
  overflow: hidden;
  padding: 22px;
}

.personal-campaign-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.personal-campaign h2,
.personal-campaign p {
  margin: 0;
}

.personal-campaign small {
  color: #ffd166;
  font-weight: 900;
  text-transform: uppercase;
}

.personal-deal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 16px;
}

.personal-deal-grid article {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 12px;
}

.personal-deal-grid strong,
.personal-deal-grid span {
  display: block;
}

.personal-deal-grid span {
  color: #ffd166;
  font-size: 1.35rem;
  font-weight: 950;
  margin: 6px 0 10px;
}

.selected-row {
  background: rgba(100, 32, 154, 0.08);
}

.danger-reset-panel {
  background: #fff1f2;
  border: 2px solid #dc2626;
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.14);
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}

.danger-reset-panel h3 {
  color: #991b1b;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.danger-reset-panel p,
.danger-reset-panel small {
  color: #7f1d1d;
  font-weight: 850;
  margin: 0;
}

.danger-reset-panel label {
  display: grid;
  gap: 6px;
  max-width: 320px;
}

.reset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reports-panel {
  display: grid;
  gap: 16px;
}

.supplier-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.supplier-tab-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-strong);
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 0 18px;
}

.supplier-tab-button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(100, 32, 154, 0.18);
}

.supplier-panel {
  display: none;
}

.supplier-panel.is-active {
  display: block;
}

.supplier-empty-panel {
  align-items: start;
  background: #fff;
  border: 1px dashed rgba(100, 32, 154, 0.32);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  padding: 22px;
}

.supplier-empty-panel span {
  color: var(--muted);
  font-weight: 850;
}

.supplier-empty-panel h2 {
  color: var(--primary-strong);
  margin: 4px 0 8px;
}

.supplier-empty-panel p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.supplier-empty-steps {
  display: grid;
  gap: 10px;
}

.supplier-empty-steps article {
  align-items: center;
  background: #fbf8ff;
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.supplier-empty-steps strong {
  background: var(--accent);
  border-radius: 50%;
  color: #271300;
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
}

.reports-control-grid {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  padding: 16px;
}

.reports-control-grid label {
  display: grid;
  gap: 6px;
}

.reports-control-grid span,
.report-preview-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.report-preview-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.report-preview-head strong,
.report-preview-head small {
  display: block;
}

.report-preview-head strong {
  color: var(--primary-strong);
  font-size: 1.35rem;
}

.report-preview-head small {
  color: var(--muted);
  font-weight: 800;
  margin-top: 3px;
}

.report-section-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.report-section-card {
  border: 1px solid rgba(100, 32, 154, 0.16);
  border-radius: 8px;
  background: #fbf8ff;
  padding: 14px;
}

.report-section-card h3 {
  color: var(--primary);
  margin: 0 0 8px;
}

.report-section-card p {
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.report-section-card .report-section-purpose {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.report-section-card small {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-top: 10px;
}

.report-view-actions {
  align-items: center;
  background: #fbf8ff;
  border: 1px solid rgba(100, 32, 154, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.report-view-actions span {
  color: var(--muted);
  font-weight: 850;
}

.report-executive {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.report-decision-notes {
  display: grid;
  gap: 8px;
}

.report-decision-notes p {
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 9%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
  margin: 0;
  padding: 10px 12px;
}

.report-view-body {
  display: grid;
  gap: 18px;
}

.report-view-section {
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.report-view-section-head {
  align-items: center;
  background: #f3eafa;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.report-view-section-head h3 {
  color: var(--primary-strong);
  margin: 0;
}

.report-view-section-head p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 4px 0 0;
}

.report-view-section-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.report-quality-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px 0;
}

.report-quality-strip span {
  background: #fff7df;
  border: 1px solid #e4c766;
  border-radius: 999px;
  color: #6f4f00;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 8px;
}

.report-view-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 12px;
}

.report-view-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
}

.report-view-summary span,
.report-view-summary strong {
  display: block;
}

.report-view-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-view-summary strong {
  color: var(--ink);
  font-size: 0.95rem;
  margin-top: 3px;
}

.report-view-table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
}

.report-view-table {
  min-width: 820px;
}

.report-view-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.report-view-table td {
  overflow-wrap: anywhere;
  max-width: 360px;
}

.order-export-select {
  align-items: start;
  display: grid;
  gap: 5px;
  min-width: 180px;
}

.order-export-select span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.order-export-select select {
  min-height: 42px;
}

.tabloid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 22px;
  align-items: start;
}

.tabloid-controls,
.tabloid-preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.tabloid-sync-card {
  grid-template-columns: minmax(210px, 1fr) minmax(180px, 1fr) minmax(150px, 220px) auto;
}

.tabloid-upload-row,
.tabloid-vigency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

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

.tabloid-template-note {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px;
  border: 1px dashed rgba(100, 32, 154, 0.28);
  border-radius: 8px;
  background: #fbf7ff;
}

.tabloid-template-note strong,
.tabloid-template-note span {
  display: block;
}

.tabloid-template-note strong {
  color: var(--primary);
}

.tabloid-template-note span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.tabloid-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tabloid-prompt-actions button {
  min-width: 190px;
  white-space: normal;
  text-align: center;
}

.tabloid-template-note b {
  color: var(--primary-strong);
  font-weight: 950;
}

.tabloid-template-library {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tabloid-library-head,
.tabloid-library-head strong,
.tabloid-library-head span {
  display: block;
}

.tabloid-library-head strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.tabloid-library-head span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
  margin-top: 2px;
}

.tabloid-template-save-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  align-items: end;
  gap: 10px;
}

.tabloid-template-gallery {
  display: grid;
  gap: 10px;
}

.tabloid-template-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tabloid-template-card .tabloid-template-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.tabloid-template-thumb {
  width: 72px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b0a46, #64209a);
  color: var(--accent);
  font-weight: 900;
}

.tabloid-template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tabloid-template-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tabloid-template-meta strong,
.tabloid-template-meta span {
  display: block;
}

.tabloid-template-meta strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.tabloid-template-meta span,
.tabloid-template-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.tabloid-template-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tabloid-template-actions button {
  min-width: 92px;
}

.tabloid-template-empty {
  padding: 12px;
  border: 1px dashed rgba(100, 32, 154, 0.28);
  border-radius: 8px;
  background: #fbf7ff;
}

.tabloid-admin-alerts {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.tabloid-admin-alerts article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(243, 169, 31, 0.45);
  border-radius: 8px;
  background: #fff8e4;
}

.tabloid-admin-alerts strong,
.tabloid-admin-alerts span,
.tabloid-admin-alerts small {
  display: block;
}

.tabloid-admin-alerts strong {
  color: #6d4600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.tabloid-admin-alerts span {
  color: var(--ink);
  font-weight: 750;
}

.tabloid-admin-alerts small {
  color: var(--muted);
}

.tabloid-alert-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tabloid-selected-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.tabloid-selected-head,
.tabloid-selected-list article {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tabloid-selected-head strong,
.tabloid-selected-head span,
.tabloid-selected-list article strong,
.tabloid-selected-list article small {
  display: block;
}

.tabloid-selected-head span,
.tabloid-selected-list article small {
  color: var(--muted);
  font-weight: 800;
}

.tabloid-selected-list article {
  grid-template-columns: 34px minmax(0, 1fr) minmax(140px, auto);
  align-items: center;
  min-height: 62px;
}

.tabloid-selection-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.tabloid-selection-toolbar button {
  min-height: 38px;
}

.tabloid-selected-index {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(100, 32, 154, 0.18);
}

.tabloid-selected-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tabloid-selected-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabloid-selected-info small {
  color: var(--primary);
  font-weight: 950;
}

.tabloid-selected-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tabloid-selected-actions .ghost-button {
  min-height: 34px;
  padding: 0 10px;
}

.tabloid-icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(100, 32, 154, 0.16);
  border-radius: 50%;
  background: #fbf7ff;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    opacity 0.16s ease;
}

.tabloid-icon-button:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.tabloid-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.tabloid-product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.tabloid-picker-card {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tabloid-picker-card input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
}

.tabloid-picker-card.is-scheduled {
  background: #f7f1fb;
  opacity: 0.78;
}

.tabloid-picker-thumb {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(100, 32, 154, 0.1);
  background: #fbf7ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
}

.tabloid-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tabloid-picker-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.tabloid-picker-copy strong,
.tabloid-picker-copy small,
.tabloid-picker-copy em {
  display: block;
}

.tabloid-picker-copy strong {
  color: var(--ink);
  line-height: 1.2;
}

.tabloid-picker-copy small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tabloid-picker-copy em {
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
}

.tabloid-preview-panel {
  position: sticky;
  top: 20px;
}

.tabloid-preview-shell {
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #eee8f4;
}

.tabloid-sheet {
  --tabloid-columns: 3;
  --tabloid-ratio: 1080 / 1920;
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  aspect-ratio: var(--tabloid-ratio);
  margin: 0 auto;
  display: block;
  background: #fff7df;
  color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(16, 11, 19, 0.22);
}

.tabloid-sheet-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.tabloid-format-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(16, 11, 19, 0.68);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 900;
}

.tabloid-aspect-warning {
  position: absolute;
  left: var(--tabloid-footer-left, 7%);
  top: calc(var(--tabloid-footer-top, 88.5%) + var(--tabloid-footer-height, 8.5%) + 0.6%);
  width: var(--tabloid-footer-width, 86%);
  z-index: 4;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 248, 228, 0.94);
  color: #6d4600;
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 18px rgba(31, 13, 39, 0.14);
}

.tabloid-sheet.template-limpo {
  background: #fff;
}

.tabloid-sheet.template-premium {
  background: #100b13;
}

.tabloid-sheet-header,
.tabloid-sheet-footer {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, #2b0a46, #64209a);
  color: #fff;
  text-align: center;
}

.tabloid-sheet.template-limpo .tabloid-sheet-header,
.tabloid-sheet.template-limpo .tabloid-sheet-footer {
  background: #64209a;
}

.tabloid-sheet.template-premium .tabloid-sheet-header,
.tabloid-sheet.template-premium .tabloid-sheet-footer {
  background: linear-gradient(135deg, #100b13, #2b0a46);
}

.tabloid-sheet-header img,
.tabloid-sheet-footer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tabloid-sheet-header span {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tabloid-sheet-header strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.tabloid-sheet-products {
  position: absolute;
  left: var(--tabloid-product-left, 7%);
  top: var(--tabloid-product-top, 26%);
  z-index: 1;
  width: var(--tabloid-product-width, 86%);
  height: var(--tabloid-product-height, 59%);
  display: grid;
  grid-template-columns: repeat(var(--tabloid-columns), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(5px, 1.4%, 10px);
  padding: 0;
  align-content: stretch;
}

.tabloid-sheet.is-featured-grid.columns-2 .tabloid-product-card.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  align-content: center;
}

.tabloid-sheet.is-featured-grid.columns-3 .tabloid-product-card.is-featured,
.tabloid-sheet.is-featured-grid.columns-4 .tabloid-product-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  align-content: stretch;
}

.tabloid-product-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: clamp(4px, 1vw, 8px);
  align-content: start;
  padding: clamp(6px, 1.25vw, 10px);
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(100, 32, 154, 0.16);
  overflow: hidden;
}

.tabloid-product-image {
  aspect-ratio: 1.25;
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fbf7ff;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 900;
  overflow: hidden;
}

.tabloid-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tabloid-product-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tabloid-sheet.is-featured-grid.columns-2 .tabloid-product-card.is-featured .tabloid-product-image {
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
}

.tabloid-sheet.is-featured-grid.columns-2 .tabloid-product-card.is-featured .tabloid-product-info {
  align-content: center;
}

.tabloid-sheet.is-featured-grid.columns-3 .tabloid-product-card.is-featured .tabloid-product-image,
.tabloid-sheet.is-featured-grid.columns-4 .tabloid-product-card.is-featured .tabloid-product-image {
  aspect-ratio: 1.45;
}

.tabloid-product-info small {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tabloid-product-info h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.62rem, 1.8vw, 0.88rem);
  line-height: 1.12;
}

.tabloid-product-info strong {
  color: var(--primary);
  font-size: clamp(0.9rem, 2.4vw, 1.25rem);
  line-height: 1;
}

.tabloid-product-info em {
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.tabloid-empty-preview {
  grid-column: 1 / -1;
  align-self: center;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.tabloid-empty-preview strong,
.tabloid-empty-preview span,
.tabloid-sheet-footer span {
  display: block;
}

.tabloid-empty-preview span {
  color: var(--muted);
}

.tabloid-sheet-footer {
  position: relative;
  font-weight: 900;
}

.tabloid-sheet-footer span {
  position: relative;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(16, 11, 19, 0.44);
}

.tabloid-sheet-footer-vars {
  position: absolute;
  left: var(--tabloid-footer-left, 7%);
  top: var(--tabloid-footer-top, 88.5%);
  z-index: 2;
  width: var(--tabloid-footer-width, 86%);
  height: var(--tabloid-footer-height, 8.5%);
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.tabloid-sheet-footer-vars span {
  display: block;
  font-size: clamp(0.44rem, 1.5vw, 0.8rem);
}

.tabloid-sheet.has-background .tabloid-sheet-footer-vars {
  color: #24192c;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.86);
}

.tabloid-sheet.has-background .tabloid-sheet-footer-vars span {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.tabloid-admin-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(243, 169, 31, 0.5);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(31, 13, 39, 0.24);
}

.tabloid-admin-popup.hidden {
  display: none;
}

.tabloid-admin-popup strong,
.tabloid-admin-popup span {
  display: block;
}

.tabloid-admin-popup strong {
  color: var(--primary);
  margin-bottom: 4px;
}

.tabloid-admin-popup span {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.tabloid-popup-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tabloid-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 22px;
  align-items: start;
}

.tabloid-main-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.tabloid-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.tabloid-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tabloid-card-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 255, 0.97)),
    #fff;
}

.tabloid-card-hero small,
.tabloid-card-hero h3,
.tabloid-card-hero p,
.tabloid-preview-head small,
.tabloid-preview-head strong,
.tabloid-preview-head span {
  display: block;
}

.tabloid-schedule-card {
  max-width: 620px;
}

.tabloid-card-hero small,
.tabloid-preview-head small {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tabloid-card-hero h3 {
  margin: 4px 0 0;
  color: var(--primary-strong);
  font-size: 1.28rem;
  line-height: 1.12;
}

.tabloid-card-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.36;
}

.tabloid-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tabloid-quick-actions button {
  white-space: normal;
}

.tabloid-card-title {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.tabloid-card-title > span {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(100, 32, 154, 0.18);
}

.tabloid-card-title h3,
.tabloid-card-title p {
  margin: 0;
}

.tabloid-card-title h3 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.16;
}

.tabloid-card-title p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.34;
  margin-top: 3px;
}

.tabloid-field-grid,
.tabloid-sync-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.tabloid-sync-card {
  display: grid;
  grid-template-columns: none;
}

.tabloid-sync-fields {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(140px, auto);
  align-items: end;
}

.tabloid-search-field {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(100, 32, 154, 0.14);
  border-radius: 8px;
  background: #fbf7ff;
}

.tabloid-search-field span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tabloid-preview-panel {
  display: grid;
  gap: 12px;
}

.tabloid-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tabloid-preview-head strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.tabloid-preview-head span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3eafa;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
}

@media (max-width: 680px) {
  .notification-panel {
    left: 12px;
    right: 12px;
    top: 82px;
    width: auto;
  }

  .tabloid-selected-list article {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .tabloid-selected-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.survey-admin-grid {
  align-items: start;
}

.survey-settings-card {
  margin-bottom: 16px;
}

.survey-question-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.6fr);
  gap: 12px;
}

.survey-campaign-list,
.survey-response-list {
  display: grid;
  gap: 10px;
}

.survey-campaign-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.survey-campaign-card.is-selected {
  border-color: rgba(100, 32, 154, 0.55);
  box-shadow: 0 0 0 3px rgba(100, 32, 154, 0.1);
}

.survey-campaign-card > button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.survey-campaign-card strong,
.survey-campaign-card span,
.survey-campaign-card small {
  display: block;
}

.survey-campaign-card strong {
  color: var(--ink);
}

.survey-campaign-card span,
.survey-campaign-card small {
  color: var(--muted);
  font-weight: 800;
}

.survey-detail-thumb {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3eafa;
  margin: 10px 0;
}

.survey-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.survey-summary-grid article,
.survey-response-list article {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.survey-summary-grid span,
.survey-response-list small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.survey-summary-grid strong,
.survey-response-list strong {
  color: var(--ink);
}

.survey-response-list span {
  color: var(--ink);
  line-height: 1.35;
}

.public-survey-card {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.public-survey-head h2,
.public-survey-head p {
  margin: 0;
}

.public-survey-head p {
  color: var(--muted);
  font-weight: 750;
  margin-top: 4px;
}

.public-survey-image-wrap {
  display: grid;
  place-items: center;
  max-height: 48vh;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: #f3eafa;
}

.public-survey-image-wrap img {
  max-width: 100%;
  max-height: 46vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(31, 13, 39, 0.18);
}

.public-tabloid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  width: 100%;
}

.public-tabloid-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(31, 13, 39, 0.08);
}

.public-tabloid-card img,
.public-tabloid-card .public-tabloid-initials {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.public-tabloid-initials {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 900;
}

.public-tabloid-card small,
.public-tabloid-card strong,
.public-tabloid-card span {
  display: block;
}

.public-tabloid-card small {
  color: var(--muted);
  font-weight: 800;
}

.public-tabloid-card strong {
  color: var(--ink);
  line-height: 1.15;
}

.public-tabloid-card span {
  color: var(--primary);
  font-size: 1.28rem;
  font-weight: 950;
}

.survey-answer-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.survey-answer-field legend {
  color: var(--ink);
  font-weight: 900;
  padding: 0 4px;
}

.survey-answer-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.survey-answer-field input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 880px) {
  .tabloid-workspace,
  .tabloid-layout,
  .supplier-empty-panel {
    grid-template-columns: 1fr;
  }

  .tabloid-config-grid,
  .tabloid-card-hero,
  .tabloid-field-grid,
  .tabloid-sync-fields,
  .tabloid-sync-card,
  .tabloid-upload-row,
  .tabloid-vigency-grid {
    grid-template-columns: 1fr;
  }

  .tabloid-card,
  .tabloid-preview-panel {
    padding: 14px;
  }

  .tabloid-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tabloid-quick-actions button {
    width: 100%;
  }

  .tabloid-template-save-row,
  .tabloid-template-card,
  .survey-question-grid,
  .survey-campaign-card {
    grid-template-columns: 1fr;
  }

  .tabloid-template-save-row button,
  .tabloid-prompt-actions button,
  .tabloid-template-actions button {
    width: 100%;
  }

  .tabloid-template-thumb {
    width: 100%;
    max-height: 180px;
  }

  .tabloid-prompt-actions,
  .tabloid-template-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .tabloid-selected-list article {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .tabloid-selected-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .tabloid-alert-actions button,
  .tabloid-popup-actions button {
    flex: 1 1 150px;
  }

  .tabloid-preview-panel {
    position: static;
  }

  .public-survey-card {
    width: min(100vw - 16px, 760px);
    max-height: calc(100vh - 16px);
  }

  .reports-control-grid {
    grid-template-columns: 1fr;
  }

  .random-merch-panel,
  .random-merch-controls,
  .random-merch-stats,
  .promo-command-grid,
  .promo-kind-grid,
  .promo-preview-grid,
  .promo-upload-row,
  .promo-inline-fields,
  .promo-asset-controls,
  .promo-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .random-merch-check {
    grid-column: auto;
  }

  .random-merch-remove-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .promo-product-card,
  .promo-history-item {
    grid-template-columns: 1fr;
  }

  .promo-product-thumb {
    width: 100%;
    height: 132px;
  }

  .promo-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .tabloid-card {
    padding: 12px;
  }

  .tabloid-card-title {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .tabloid-card-title > span {
    width: 30px;
  }

  .tabloid-card-hero h3 {
    font-size: 1.08rem;
  }

  .tabloid-template-note {
    padding: 10px;
  }

  .tabloid-picker-card {
    grid-template-columns: auto 52px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .tabloid-picker-thumb {
    width: 52px;
  }

  .tabloid-selected-list article {
    gap: 8px;
    padding: 9px;
    min-height: 58px;
  }

  .tabloid-selected-index,
  .tabloid-icon-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .tabloid-selected-info strong {
    font-size: 0.92rem;
  }

  .tabloid-preview-shell {
    padding: 8px;
    max-height: none;
  }

  .tabloid-admin-popup {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .public-survey-image-wrap {
    max-height: 40vh;
  }

  .public-survey-image-wrap img {
    max-height: 38vh;
  }
}

/* Professional responsive polish layer */
@media (min-width: 1101px) {
  body {
    overflow-x: hidden;
  }

  .content {
    padding: 30px clamp(24px, 2.4vw, 42px);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    margin: -30px calc(clamp(24px, 2.4vw, 42px) * -1) 24px;
    padding: 18px clamp(24px, 2.4vw, 42px);
    border-bottom: 1px solid rgba(231, 223, 240, 0.82);
    background: rgba(251, 248, 252, 0.9);
    backdrop-filter: blur(16px);
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .topbar-actions > button,
  .topbar-actions > a {
    white-space: nowrap;
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
    align-items: start;
  }

  .catalog-area,
  .cart-panel,
  .editor-panel,
  .tabloid-card,
  .tabloid-preview-panel,
  .public-survey-card {
    border-radius: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }

  .product-card {
    min-height: 100%;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    align-items: start;
  }

  .survey-admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  }

  .tabloid-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: 24px;
  }

  .tabloid-preview-shell {
    max-height: calc(100vh - 190px);
  }

  .tabloid-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(118px, auto));
    align-items: center;
  }

  .tabloid-quick-actions button {
    min-width: 0;
    padding-inline: 12px;
  }

  .public-survey-card {
    width: min(900px, calc(100vw - 56px));
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    gap: 16px;
    align-items: start;
  }

  .public-survey-head {
    grid-column: 1 / -1;
  }

  .public-survey-image-wrap {
    max-height: min(68vh, 760px);
  }

  .public-survey-image-wrap img {
    max-height: min(66vh, 720px);
  }

  #publicSurveyShareButton,
  #publicSurveyForm {
    grid-column: 2;
  }

  #publicSurveyShareButton {
    grid-row: 2;
    align-self: end;
    margin-top: auto;
  }

  #publicSurveyForm {
    grid-row: 3;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .content {
    padding: 22px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

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

  .tabloid-workspace,
  .survey-admin-grid {
    grid-template-columns: 1fr;
  }

  .tabloid-preview-panel {
    position: static;
  }

  .tabloid-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tabloid-quick-actions button {
    min-width: 0;
    padding-inline: 8px;
  }

  .public-survey-card {
    width: min(820px, calc(100vw - 28px));
  }
}

@media (max-width: 680px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .content {
    padding-inline: max(10px, env(safe-area-inset-left));
  }

  .brand {
    gap: 10px;
  }

  .brand > div {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    grid-template-columns: 1fr 64px;
    width: 100%;
  }

  .topbar-actions .whatsapp-button {
    grid-column: 1;
  }

  #customerAccessButton {
    grid-column: 1;
  }

  .cart-top-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    width: 64px !important;
    min-height: 64px;
  }

  .hero-strip {
    margin-bottom: 14px;
  }

  .hero-copy strong {
    max-width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    contain: layout;
  }

  .product-image {
    height: clamp(190px, 54vw, 250px);
  }

  .tabloid-card-hero {
    gap: 12px;
  }

  .tabloid-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tabloid-quick-actions button {
    min-height: 46px;
    white-space: normal;
  }

  .tabloid-quick-actions #tabloidExportButton {
    grid-column: 1 / -1;
  }

  .tabloid-field-grid,
  .tabloid-sync-fields,
  .survey-question-grid {
    gap: 10px;
  }

  .tabloid-product-picker {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .tabloid-picker-card {
    min-width: 0;
  }

  .tabloid-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabloid-preview-shell {
    margin-inline: -4px;
  }

  .tabloid-sheet {
    width: min(100%, 390px);
    box-shadow: 0 12px 30px rgba(16, 11, 19, 0.16);
  }

  .tabloid-product-card {
    gap: 5px;
    padding: 7px;
  }

  .tabloid-product-info h3 {
    font-size: clamp(0.54rem, 2.4vw, 0.74rem);
  }

  .tabloid-product-info strong {
    font-size: clamp(0.72rem, 3vw, 1rem);
  }

  .tabloid-product-info small,
  .tabloid-product-info em {
    font-size: 0.48rem;
  }

  .public-survey-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 20px 20px 12px 12px;
  }

  .public-survey-image-wrap {
    padding: 8px;
    max-height: 36dvh;
  }

  .public-survey-image-wrap img {
    max-height: 34dvh;
  }

  .survey-answer-field {
    padding: 10px;
  }

  .survey-answer-field label {
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .survey-campaign-card {
    gap: 8px;
  }

  .survey-detail-thumb {
    max-height: 260px;
  }

  .modal-actions,
  .order-actions,
  .row-actions {
    grid-template-columns: 1fr;
  }

button,
.primary-button,
.ghost-button,
.whatsapp-button {
  touch-action: manipulation;
}
}

/* Final tablet override: sits after mobile rules so tablet gets its own stable layout. */
@media (min-width: 681px) and (max-width: 1100px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    background:
      radial-gradient(circle at 0 0, rgba(243, 169, 31, 0.16), transparent 26rem),
      radial-gradient(circle at 100% 8%, rgba(100, 32, 154, 0.13), transparent 24rem),
      linear-gradient(180deg, #fff, #fbf8fc 48%, #f6effa);
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 130;
    height: auto;
    padding: 12px 18px;
    border-radius: 0 0 22px 22px;
  }

  .brand {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    min-height: 62px;
    gap: 12px;
  }

  .brand .mobile-nav-toggle {
    grid-column: 1;
  }

  .brand > div {
    grid-column: 2;
    text-align: center;
  }

  .brand .brand-mark {
    grid-column: 3;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #251303;
  }

  .mobile-nav-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .main-nav {
    width: min(86vw, 620px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: calc(20px + env(safe-area-inset-top)) 16px 20px;
    border-radius: 0 26px 26px 0;
  }

  .main-nav .nav-button {
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .content {
    padding: 20px clamp(18px, 3vw, 28px) 86px;
  }

  .topbar {
    position: sticky;
    top: 86px;
    z-index: 28;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    margin: -6px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(231, 223, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 14px 30px rgba(62, 27, 91, 0.11);
    backdrop-filter: blur(15px);
  }

  .topbar h1 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  }

  .topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .topbar-actions button,
  .topbar-actions a {
    width: auto;
    min-height: 44px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .cart-top-button {
    min-height: 54px;
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
  }

  .hero-strip {
    min-height: 150px;
    padding: 18px 20px;
    border-radius: 18px;
  }

  .store-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-area,
  .cart-panel,
  .editor-panel,
  .order-card,
  .analytics-card,
  .settings-grid,
  .seller-assist-card,
  .seller-clients-card,
  .seller-order-workspace,
  .seller-orders-section {
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(62, 27, 91, 0.09);
  }

  .catalog-area {
    padding: 16px;
  }

  #storeView .catalog-area > .toolbar {
    position: sticky;
    top: 176px;
    z-index: 26;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
    gap: 10px;
    align-items: end;
    margin: -16px -16px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(231, 223, 240, 0.92);
    border-radius: 18px 18px 16px 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(62, 27, 91, 0.1);
    backdrop-filter: blur(14px);
  }

  #storeView .catalog-area > .toolbar .search-field {
    min-width: 0;
  }

  #storeView .catalog-area > .toolbar input,
  #storeView .catalog-area > .toolbar select,
  input,
  select,
  textarea {
    min-height: 46px;
    border-radius: 13px;
    font-size: 0.98rem;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 12px -4px 18px;
    padding: 0 4px 4px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    white-space: nowrap;
  }

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

  .product-card {
    min-height: 100%;
    padding: 13px;
    border-radius: 18px;
    gap: 9px;
    overflow-x: clip;
  }

  .product-card--offer::before,
  .product-card--custom::before,
  .product-card--featured::before,
  .product-card--showcase::before {
    top: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    transform: none;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.64rem;
  }

  .product-image {
    height: clamp(190px, 28vw, 250px);
    border-radius: 16px;
  }

  .product-card h3 {
    min-height: 2.35em;
    font-size: 1.08rem;
    line-height: 1.16;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .price-line strong {
    font-size: 1.36rem;
  }

  .product-qty-row {
    grid-template-columns: 48px minmax(68px, 1fr) 48px;
    gap: 9px;
  }

  .product-qty-row button,
  .product-qty-row input,
  .bulk-min-button,
  .product-card .primary-button {
    min-height: 48px;
    border-radius: 14px;
  }

  .cart-panel,
  .editor-panel {
    position: static;
    padding: 16px;
  }

  .cart-items {
    max-height: 48vh;
  }

  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-grid,
  .pricing-rule-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  table {
    min-width: 760px;
  }

  .seller-current-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
  }

  .seller-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(118px, auto));
    gap: 8px;
  }

  .seller-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .seller-stat-card,
  .seller-fund-card {
    min-height: 116px;
    padding: 13px;
  }

  .seller-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 14px;
  }

  .seller-assist-card,
  .seller-clients-card,
  .seller-order-workspace,
  .seller-orders-section {
    padding: 14px;
  }

  .seller-client-list {
    max-height: 410px;
    overflow: auto;
  }

  .seller-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .seller-flow-steps span {
    padding: 9px 8px;
    text-align: center;
    font-size: 0.78rem;
  }

  .seller-code-legend,
  .seller-form-split,
  .seller-pricing-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-code-legend strong,
  .seller-margin-field,
  .seller-start-order-button {
    grid-column: 1 / -1;
  }

  .seller-start-order-button {
    min-height: 54px;
    border-radius: 16px;
    font-size: 1.04rem;
  }

  .seller-negotiation-box {
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
  }

  .seller-negotiation-box input {
    min-height: 48px;
    font-size: 1.08rem;
  }

  .assisted-order-mode .topbar {
    top: 86px;
    margin-bottom: 10px;
    border-color: rgba(255, 194, 73, 0.52);
    background: linear-gradient(135deg, rgba(43, 10, 70, 0.96), rgba(16, 11, 19, 0.96));
    color: #fff;
  }

  .assisted-order-mode .topbar h1,
  .assisted-order-mode .topbar .eyebrow {
    color: #fff;
  }

  .assisted-order-banner {
    position: sticky;
    top: 172px;
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(31, 13, 39, 0.16);
  }

  .assisted-order-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(128px, auto));
    gap: 8px;
  }

  .assisted-order-actions button {
    min-height: 42px;
    border-radius: 12px;
    white-space: nowrap;
  }

  .assisted-order-mode #storeView .catalog-area > .toolbar {
    top: 260px;
  }

  .tabloid-workspace,
  .survey-admin-grid {
    grid-template-columns: 1fr;
  }

  .tabloid-preview-panel {
    position: static;
  }

  .tabloid-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tabloid-quick-actions button {
    min-width: 0;
    padding-inline: 8px;
  }

  .store-image-fullscreen-card {
    width: min(940px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    border-radius: 22px;
  }

  .store-image-fullscreen-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .store-image-clean-frame {
    min-height: min(62dvh, 620px);
  }

  .store-image-clean-frame img {
    height: min(58dvh, 580px);
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .store-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  }

  .cart-panel {
    position: sticky;
    top: 176px;
    max-height: calc(100dvh - 196px);
    overflow: hidden;
  }

  .cart-items {
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }
}

/* Final tablet card polish: compact seller cards after every mobile/desktop rule. */
@media (min-width: 681px) and (max-width: 1100px) {
  #storeView .product-image {
    height: clamp(150px, 23vw, 205px);
  }

  #storeView .product-card {
    gap: 8px;
  }

  #storeView .quick-price-cell--card {
    gap: 6px;
    margin: 4px 0;
    padding: 8px;
  }

  #storeView .quick-price-cell--card label {
    gap: 4px;
  }

  #storeView .quick-price-row {
    gap: 8px;
  }

  #storeView .quick-price-input,
  #storeView .quick-price-cell--card .compact {
    min-height: 42px;
    border-radius: 12px;
  }

  #storeView .product-qty-control {
    gap: 8px;
  }

  #storeView .product-qty-row {
    grid-template-columns: 44px minmax(64px, 1fr) 44px;
    gap: 8px;
  }

  #storeView .product-qty-row button,
  #storeView .product-qty-row input,
  #storeView .bulk-min-button,
  #storeView .product-card .primary-button {
    min-height: 44px;
    border-radius: 13px;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  #storeView .product-grid {
    grid-template-columns: 1fr;
  }

  #storeView .product-card {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    grid-template-areas:
      "image tags"
      "image title"
      "image price"
      "image cost"
      "image admin"
      "image bulk"
      "qty qty";
    align-items: start;
    min-height: 0;
  }

  #storeView .product-card .product-image {
    grid-area: image;
    height: clamp(170px, 21vw, 220px);
    min-height: 100%;
  }

  #storeView .product-card .tag-row {
    grid-area: tags;
  }

  #storeView .product-card h3 {
    grid-area: title;
    min-height: 0;
  }

  #storeView .product-card .price-line {
    grid-area: price;
  }

  #storeView .product-card .admin-cost-line {
    grid-area: cost;
  }

  #storeView .product-card .quick-price-cell--card {
    grid-area: admin;
  }

  #storeView .product-card > small {
    grid-area: bulk;
  }

  #storeView .product-card .product-qty-control {
    grid-area: qty;
  }
}

/* Final footer responsive override. Keep after every repeated responsive block. */
@media (max-width: 860px) {
  .app-footer {
    padding: 18px;
    border-radius: 16px;
  }

  .footer-brand,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    gap: 10px;
    text-align: center;
    justify-items: center;
  }

  .footer-grid {
    gap: 14px;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
    text-align: center;
  }
}

/* Active theme last-mile override: must be the final CSS block. */
body {
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb), 0.1), transparent 32rem),
    radial-gradient(circle at 100% 0, rgba(var(--primary-rgb), 0.1), transparent 28rem),
    linear-gradient(180deg, #fff, var(--bg) 52%, var(--soft)) !important;
  color: var(--ink);
}

.sidebar {
  background:
    radial-gradient(circle at 92% 20%, rgba(var(--accent-rgb), 0.24), transparent 9rem),
    linear-gradient(135deg, var(--nav-start), var(--nav-end)) !important;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.22);
}

.main-nav {
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.18), transparent 10rem),
    linear-gradient(180deg, var(--nav-start), var(--nav-end)) !important;
  border-color: rgba(var(--accent-rgb), 0.34);
}

.nav-button.active,
.main-nav .nav-button.active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #fff)) !important;
  color: #241304;
  border-color: var(--accent);
}

.primary-button,
.add-button,
.checkout-button,
.admin-login-card button,
.theme-module-card.active,
.seller-action-card.primary,
.assisted-entry-card .primary-button {
  background: linear-gradient(135deg, var(--black), var(--primary)) !important;
  border-color: var(--primary);
}

body[data-theme-presentation="compact"] .content-section,
body[data-theme-presentation="compact"] .admin-card,
body[data-theme-presentation="compact"] .cart-panel,
body[data-theme-presentation="compact"] .catalog-area {
  border-radius: 14px;
  padding: clamp(14px, 2vw, 22px);
}

body[data-theme-presentation="compact"] #storeView .product-card {
  border-radius: 14px;
  padding: 12px;
}

body[data-theme-presentation="showcase"] .content-section,
body[data-theme-presentation="showcase"] .catalog-area,
body[data-theme-presentation="showcase"] .cart-panel,
body[data-theme-presentation="showcase"] .admin-card {
  border-radius: 26px;
  padding: clamp(22px, 3vw, 38px);
}

body[data-theme-presentation="showcase"] #storeView .product-card {
  border-width: 2px;
  border-radius: 26px;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 20% 0, rgba(var(--accent-rgb), 0.14), transparent 16rem),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--soft) 46%, #fff));
}

body[data-theme-presentation="premium"] .topbar {
  background:
    radial-gradient(circle at 8% 12%, rgba(var(--accent-rgb), 0.18), transparent 18rem),
    linear-gradient(135deg, color-mix(in srgb, var(--black) 94%, var(--primary)), var(--primary));
  color: #fff;
}

body[data-theme-presentation="premium"] .topbar h1,
body[data-theme-presentation="premium"] .topbar p {
  color: #fff;
}

.ai-intelligence-shell {
  display: grid;
  gap: 16px;
}

.ai-hero-panel,
.ai-links-panel,
.ai-guide-panel,
.ai-upload-panel,
.ai-results-panel,
.ai-backups-panel,
.ai-process-card,
.ai-quick-sidebar,
.ai-command-area {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ai-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.ai-hero-panel h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.ai-hero-panel p,
.ai-process-card p,
.ai-links-panel p,
.ai-upload-panel p,
.ai-results-panel p,
.ai-backups-panel p {
  margin: 0;
  color: var(--muted);
}

.ai-hero-actions,
.ai-upload-actions,
.ai-provider-links,
.ai-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.ai-process-card {
  padding: 16px;
}

.ai-process-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.ai-links-panel,
.ai-backups-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.ai-upload-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 430px) minmax(360px, 470px) minmax(180px, 240px);
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.ai-guide-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.ai-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ai-guide-head h3 {
  margin: 0 0 4px;
}

.ai-guide-head p,
.ai-guide-grid p,
.ai-rules-strip span {
  margin: 0;
  color: var(--muted);
}

.ai-guide-head > span {
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
  padding: 7px 11px;
  font-weight: 800;
  white-space: nowrap;
}

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

.ai-guide-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
}

.ai-guide-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.ai-rules-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-rules-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px;
  line-height: 1.35;
}

.ai-rules-strip b {
  color: var(--ink);
}

.ai-provider-links a,
.ai-group-chip,
.ai-result-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.ai-provider-links a:hover,
.ai-group-chip.active,
.ai-result-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ai-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ai-quick-sidebar {
  position: sticky;
  top: 16px;
  padding: 14px;
  display: grid;
  gap: 14px;
}

.ai-side-block h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.ai-side-list {
  display: grid;
  gap: 8px;
}

.ai-side-command {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 9px;
  text-align: left;
  cursor: pointer;
}

.ai-side-command strong {
  display: block;
  color: var(--primary);
}

.ai-side-command span {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.ai-command-area {
  padding: 16px;
}

.ai-command-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: end;
}

.ai-command-groups,
.ai-results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.ai-command-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.ai-command-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, auto));
  grid-auto-columns: minmax(330px, 390px);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.ai-command-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 14px;
  display: grid;
  gap: 10px;
  scroll-snap-align: start;
}

.ai-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-command-id {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.ai-star-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}

.ai-star-button.active {
  color: #b45309;
  background: #fff7ed;
  border-color: #fed7aa;
}

.ai-command-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.ai-command-card p {
  margin: 0;
  color: var(--muted);
}

.ai-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-command-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-command-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.ai-command-card dt {
  color: var(--ink);
  font-weight: 800;
}

.ai-command-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.ai-upload-box {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.ai-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
}

.ai-upload-box > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.ai-workbook-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--primary) 26%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}

.ai-workbook-card.has-file {
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 239, 0.9));
  box-shadow: 0 12px 28px rgba(31, 13, 39, 0.08);
}

.ai-workbook-card strong,
.ai-workbook-card small {
  display: block;
}

.ai-workbook-card strong {
  max-width: min(330px, 100%);
  overflow: hidden;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-workbook-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ai-workbook-clear {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #b91c1c;
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.ai-workbook-clear:hover {
  background: #b91c1c;
  color: #fff;
}

.ai-workbook-picker {
  width: max-content;
}

.ai-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  align-items: stretch;
  gap: 10px;
}

.ai-upload-actions button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.ai-results-panel {
  display: grid;
  gap: 12px;
  max-width: 100%;
  padding: 16px;
  overflow: hidden;
}

.ai-results-content {
  max-width: 100%;
  margin-top: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.ai-result-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 430px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ai-results-panel .compact-stats,
.ai-results-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.ai-results-panel .compact-stats .stat-card {
  flex: 0 0 min(260px, 78vw);
}

.ai-result-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ai-result-table {
  width: max-content;
  min-width: 1320px;
  table-layout: auto;
}

.ai-result-table th,
.ai-result-table td {
  min-width: 132px;
  vertical-align: top;
}

.ai-result-table th:first-child,
.ai-result-table td:first-child {
  min-width: 112px;
}

.ai-result-table th:nth-child(5),
.ai-result-table td:nth-child(5),
.ai-result-table th:nth-child(6),
.ai-result-table td:nth-child(6),
.ai-result-table th:nth-child(9),
.ai-result-table td:nth-child(9) {
  min-width: 220px;
}

.ai-results-content::after,
.ai-results-tabs::after {
  content: "";
  flex: 0 0 4px;
}

body.ai-simulation-active::before {
  content: "";
  position: fixed;
  z-index: 9400;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(239, 68, 68, 0.52);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    inset 0 0 26px rgba(255, 255, 255, 0.44),
    inset 0 0 54px rgba(239, 68, 68, 0.2),
    inset 0 0 110px rgba(127, 29, 29, 0.12),
    0 0 36px rgba(220, 38, 38, 0.24);
  backdrop-filter: blur(1px) saturate(1.08);
}

body.ai-simulation-active::after {
  content: "";
  position: fixed;
  z-index: 9399;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.16), transparent 24rem),
    linear-gradient(90deg, rgba(220, 38, 38, 0.09), transparent 15%, transparent 85%, rgba(220, 38, 38, 0.09)),
    linear-gradient(180deg, rgba(220, 38, 38, 0.06), transparent 18%, transparent 82%, rgba(220, 38, 38, 0.04));
}

.ai-simulation-hub {
  position: fixed;
  z-index: 9500;
  top: 12px;
  left: 50%;
  display: none;
  transform: translateX(-50%);
}

body.ai-simulation-active .ai-simulation-hub {
  display: block;
}

.ai-simulation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 242, 242, 0.58));
  color: #7f1d1d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 18px 46px rgba(127, 29, 29, 0.18);
  backdrop-filter: blur(18px) saturate(1.25);
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
}

.ai-simulation-toggle::before {
  content: "!";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.3);
  font-weight: 1000;
}

.ai-simulation-toggle small {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 900;
}

.ai-simulation-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  width: min(330px, calc(100vw - 28px));
  gap: 8px;
  transform: translateX(-50%);
  padding: 14px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 58px rgba(31, 13, 39, 0.24);
  backdrop-filter: blur(18px) saturate(1.22);
}

.ai-simulation-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(127, 29, 29, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #7f1d1d;
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
}

#aiSimulationCloseMenu {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}

.ai-simulation-menu strong {
  color: #7f1d1d;
  font-size: 0.92rem;
}

.ai-simulation-menu > small {
  margin-top: -4px;
  color: var(--muted);
  font-weight: 800;
}

.ai-simulation-menu button:not(.ai-simulation-close) {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1380px) {
  .ai-upload-panel {
    grid-template-columns: minmax(220px, 1fr) minmax(300px, 430px);
    align-items: start;
  }

  .ai-upload-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
  }

  .ai-upload-panel .backend-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body.ai-simulation-active::before {
    inset: 6px;
    border-radius: 16px;
  }

  .ai-simulation-hub {
    top: 10px;
  }

  .ai-simulation-toggle {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .ai-simulation-toggle small {
    display: none;
  }

  .ai-result-table {
    min-width: 980px;
  }
}

@media (max-width: 1120px) {
  .ai-process-grid,
  .ai-guide-grid,
  .ai-rules-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-workbench {
    grid-template-columns: 1fr;
  }

  .ai-quick-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ai-hero-panel,
  .ai-links-panel,
  .ai-guide-head,
  .ai-upload-panel,
  .ai-backups-panel {
    display: grid;
  }

  .ai-process-grid,
  .ai-guide-grid,
  .ai-rules-strip,
  .ai-quick-sidebar,
  .ai-command-toolbar {
    grid-template-columns: 1fr;
  }

  .ai-command-grid {
    grid-auto-columns: minmax(285px, 86vw);
  }

  .ai-hero-actions,
  .ai-upload-actions,
  .ai-provider-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ai-provider-links a,
  .ai-upload-actions button,
  .ai-hero-actions button {
    width: 100%;
    text-align: center;
  }

  .ai-workbook-card {
    min-width: 0;
    max-width: 100%;
  }

  .ai-workbook-card strong {
    max-width: calc(100vw - 120px);
  }

  .ai-workbook-picker {
    width: 100%;
    justify-content: center;
  }
}

/* Theme identity layer: obvious visual change for every non-traditional theme. */
body[data-app-theme="satisfacao-garantida"] .hero-strip {
  border: 2px solid rgba(var(--accent-rgb), 0.68);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 20%, rgba(var(--accent-rgb), 0.24), transparent 18rem),
    linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--primary) 12%, #fff));
}

body[data-app-theme="satisfacao-garantida"] #storeView .product-card {
  border: 2px solid color-mix(in srgb, var(--primary) 22%, #fff);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.12), transparent 38%),
    #fff;
}

body[data-app-theme="satisfacao-garantida"] #storeView .product-card::after {
  content: "compra segura";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-app-theme="satisfacao-garantida"] .tab-button {
  border-radius: 999px;
  border-color: color-mix(in srgb, var(--primary) 25%, #fff);
}

body[data-app-theme="economia-do-dia"] .hero-strip {
  border: 3px solid var(--accent);
  border-radius: 10px;
  background:
    repeating-linear-gradient(-45deg, rgba(var(--accent-rgb), 0.18) 0 10px, transparent 10px 22px),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, #fff), #fff);
}

body[data-app-theme="economia-do-dia"] #storeView .product-card {
  border: 2px dashed var(--primary);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(var(--accent-rgb), 0.55);
}

body[data-app-theme="economia-do-dia"] #storeView .price-line strong,
body[data-app-theme="economia-do-dia"] #storeView .product-price {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--primary-strong);
  transform: rotate(-1deg);
}

body[data-app-theme="economia-do-dia"] .tab-button {
  border-radius: 8px;
  border: 2px solid var(--primary);
  box-shadow: 4px 4px 0 rgba(var(--accent-rgb), 0.55);
}

body[data-app-theme="atendimento-premium"] .topbar,
body[data-app-theme="atendimento-premium"] .hero-strip {
  border-color: rgba(var(--accent-rgb), 0.42);
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.18), transparent 16rem),
    linear-gradient(135deg, var(--black), var(--primary));
  color: #fff;
}

body[data-app-theme="atendimento-premium"] .hero-strip span,
body[data-app-theme="atendimento-premium"] .hero-strip strong,
body[data-app-theme="atendimento-premium"] .hero-strip p,
body[data-app-theme="atendimento-premium"] .topbar h1,
body[data-app-theme="atendimento-premium"] .topbar p {
  color: #fff;
}

body[data-app-theme="atendimento-premium"] #storeView .product-card {
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), transparent 42%),
    #fff;
  box-shadow: 0 22px 50px rgba(var(--shadow-rgb), 0.2);
}

body[data-app-theme="atendimento-premium"] .tab-button {
  border-radius: 4px;
  background: var(--black);
  color: #fff;
}

body[data-app-theme="atendimento-premium"] .tab-button.active {
  background: var(--accent);
  color: var(--black);
}

body[data-app-theme="atacado-direto"] .hero-strip {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, var(--primary) 0 18px, transparent 18px),
    linear-gradient(135deg, #fff1d6, #fff);
  box-shadow: 0 18px 0 rgba(var(--primary-rgb), 0.12);
}

body[data-app-theme="atacado-direto"] #storeView .product-card {
  border: 3px solid var(--primary);
  border-radius: 0;
  background:
    linear-gradient(180deg, var(--primary) 0 12px, #fff 12px);
}

body[data-app-theme="atacado-direto"] #storeView .product-image {
  border-radius: 0;
}

body[data-app-theme="atacado-direto"] .tab-button {
  border-radius: 0;
  border: 2px solid var(--primary);
  text-transform: uppercase;
}

body[data-app-theme="atacado-direto"] .tab-button.active {
  background: var(--primary);
  color: #fff;
}

body:not([data-app-theme="tradicional"]) .trust-popup-card {
  border: 3px solid var(--accent);
  background:
    radial-gradient(circle at 90% 8%, rgba(var(--accent-rgb), 0.2), transparent 14rem),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, #fff), #fff);
}

body:not([data-app-theme="tradicional"]) .theme-module-card.is-active {
  outline: 4px solid var(--accent);
  transform: translateY(-2px);
}

.theme-logo-preview {
  display: grid;
  place-items: center;
  min-height: 118px;
  margin: 8px 0 12px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, var(--primary)) 18%, #fff);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.9), transparent 12rem),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary, var(--primary)) 10%, #fff), #fff);
}

.theme-logo-preview img {
  display: block;
  width: min(82%, 220px);
  max-height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(16, 11, 19, 0.18));
}

.theme-logo-gallery-field {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.theme-logo-gallery-field > span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.theme-logo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.theme-logo-option {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 150px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.theme-logo-option__pick {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.theme-logo-option__pick small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.theme-logo-option__delete {
  min-height: 34px;
  border: 1px solid rgba(215, 25, 32, 0.22);
  border-radius: 10px;
  background: rgba(215, 25, 32, 0.06);
  color: #a41218;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.theme-logo-gallery-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 850;
}

.theme-store-miniature-no-logo {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.theme-logo-option:hover,
.theme-logo-option.is-selected {
  border-color: var(--primary);
  box-shadow: 0 14px 28px rgba(var(--shadow-rgb), 0.14);
  transform: translateY(-1px);
}

.theme-logo-option.is-selected {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, #fff), #fff);
}

.theme-logo-option__image {
  display: grid;
  place-items: center;
  height: 96px;
  border-radius: 10px;
  background:
    linear-gradient(45deg, rgba(100, 32, 154, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100, 32, 154, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(100, 32, 154, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(100, 32, 154, 0.05) 75%),
    #fff;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  overflow: hidden;
}

.theme-logo-option__image img {
  display: block;
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(16, 11, 19, 0.16));
}

body:not([data-app-theme="tradicional"]) .hero-logo-frame {
  border: 2px solid rgba(var(--accent-rgb), 0.55);
  background:
    radial-gradient(circle at 50% 15%, rgba(var(--accent-rgb), 0.16), transparent 12rem),
    #fff;
}

body:not([data-app-theme="tradicional"]) .hero-logo {
  width: min(92%, 360px);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(var(--shadow-rgb), 0.25));
}

.crm-product-picker {
  display: grid;
  gap: 10px;
  position: relative;
}

.crm-product-picker > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.crm-product-preview {
  min-height: 110px;
}

.crm-product-preview-empty,
.crm-product-preview-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.crm-product-preview-empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: var(--muted);
}

.crm-product-preview-empty strong,
.crm-product-preview-card strong {
  color: var(--ink);
}

.crm-product-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.crm-product-preview-head div {
  display: grid;
  gap: 4px;
}

.crm-product-preview-head span:not(.tag) {
  color: var(--muted);
  font-size: 0.85rem;
}

.crm-product-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.crm-product-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow: auto;
  padding-right: 2px;
}

.crm-product-price-grid > div {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 4%, #fff);
}

.crm-product-price-grid span,
.crm-product-price-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.crm-product-price-grid strong {
  font-size: 0.98rem;
}

.crm-product-select-list {
  display: none;
  gap: 6px;
  position: absolute;
  z-index: 62;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 282px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(var(--shadow-rgb), 0.2);
}

.crm-product-picker.is-open .crm-product-select-list {
  display: grid;
}

.crm-product-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crm-product-option span {
  color: var(--muted);
  font-size: 0.82rem;
}

.crm-product-option:hover,
.crm-product-option:focus-visible,
.crm-product-option.is-hovered {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  outline: none;
  box-shadow: 0 8px 18px rgba(var(--shadow-rgb), 0.08);
}

.crm-product-option.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, #fff);
}

.crm-product-no-results {
  padding: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.crm-product-modal-card {
  width: min(980px, calc(100vw - 28px));
  max-height: min(90vh, 860px);
  overflow: auto;
}

.crm-product-modal-search {
  margin: 4px 0 12px;
}

.crm-product-modal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  min-height: 390px;
}

.crm-product-modal-list {
  display: grid;
  align-content: start;
  gap: 7px;
  max-height: 58vh;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, #fff);
}

.crm-product-modal-preview-wrap {
  min-width: 0;
  max-height: 58vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.crm-product-modal-preview .crm-product-preview-card,
.crm-product-modal-preview .crm-product-preview-empty {
  border: 0;
  border-radius: 0;
  min-height: 100%;
}

.crm-product-modal-preview .crm-product-price-grid {
  max-height: none;
}

.crm-product-modal-card .modal-actions {
  position: sticky;
  bottom: -22px;
  margin: 0 -22px -22px;
  padding: 12px 22px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.crm-campaign-modal-card {
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 820px);
  overflow: auto;
}

.crm-campaign-client-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.crm-campaign-client-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.crm-campaign-client-card div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.crm-campaign-client-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.crm-client-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.crm-client-decision-grid span {
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--primary) 4%, #fff);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.crm-client-decision-grid b {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.crm-campaign-client-card .row-actions {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .crm-product-preview-head,
  .crm-campaign-client-card {
    align-items: stretch;
    flex-direction: column;
  }

  .crm-product-preview-empty {
    grid-template-columns: 1fr;
  }

  .crm-product-preview-actions {
    justify-content: flex-start;
  }

  .crm-product-picker.is-open .crm-product-select-list {
    position: static;
    max-height: 260px;
  }

  .crm-product-modal-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .crm-product-modal-list,
  .crm-product-modal-preview-wrap {
    max-height: 42vh;
  }

  .crm-campaign-client-card .row-actions {
    width: 100%;
  }
}

.checkout-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: start;
}

.checkout-main-panel,
.checkout-summary-panel,
.admin-checkout-form,
.checkout-admin-help {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checkout-main-panel,
.checkout-summary-panel {
  padding: 18px;
}

.checkout-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.checkout-page-head h2,
.checkout-page-head p {
  margin: 0;
}

.checkout-page-head p,
.checkout-whatsapp-note span {
  color: var(--muted);
  line-height: 1.45;
}

.checkout-unavailable-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 25, 32, 0.28);
  border-radius: 8px;
  background: #fff5f5;
  color: #8d1117;
  font-weight: 900;
}

.checkout-cart-items {
  display: grid;
  gap: 12px;
}

.checkout-cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(150px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-cart-image,
.checkout-offer-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: var(--soft);
}

.checkout-cart-image img,
.checkout-offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-cart-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.checkout-cart-info h3,
.checkout-offer-card h3 {
  margin: 0;
  line-height: 1.18;
}

.checkout-cart-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.checkout-summary-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.checkout-summary-box {
  margin: 0;
}

.checkout-whatsapp-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 5%, #fff);
}

.checkout-final-button,
.cart-mini-checkout-button {
  min-height: 52px;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), 0.2);
}

.checkout-suggestions {
  margin-top: 20px;
}

.checkout-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.checkout-offer-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-offer-body {
  display: grid;
  gap: 6px;
}

.checkout-offer-card .primary-button {
  width: 100%;
}

.checkout-final-modal-card {
  width: min(960px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  overflow: auto;
}

.checkout-final-timer {
  display: grid;
  place-items: center;
  min-width: 62px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #241304;
  font-size: 1.25rem;
}

.admin-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}

.admin-checkout-form,
.checkout-admin-help {
  padding: 18px;
}

.checkout-config-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-slot-list {
  display: grid;
  gap: 12px;
}

.checkout-slot-config {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 55%, #fff);
}

.checkout-slot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 10px;
  align-items: center;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.compact-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.checkout-fixed-product-field {
  align-content: start;
}

.checkout-fixed-product-description {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-fixed-product-description.muted {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.checkout-fixed-product-description strong {
  color: var(--ink);
  line-height: 1.2;
}

.checkout-fixed-product-description span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.checkout-fixed-product-description small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.checkout-fixed-product-description b {
  color: var(--primary);
  font-size: 0.9rem;
}

.checkout-timer-field {
  max-width: 240px;
}

@media (min-width: 1180px) {
  .store-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  }

  .cart-panel {
    top: 18px;
    max-height: calc(100vh - 36px);
    overflow: auto;
  }
}

@media (max-width: 980px) {
  .checkout-page-shell,
  .admin-checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .checkout-main-panel,
  .checkout-summary-panel,
  .admin-checkout-form,
  .checkout-admin-help {
    padding: 14px;
    border-radius: 8px;
  }

  .checkout-page-head {
    display: grid;
  }

  .checkout-cart-item {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .checkout-cart-controls {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .checkout-slot-head {
    grid-template-columns: 1fr;
  }
}

/* Loja: vitrine em duas colunas, inspirada em marketplace/mobile commerce. */
#storeView .product-grid {
  display: block;
  column-count: 2;
  column-gap: 12px;
}

#storeView .product-card {
  display: inline-grid;
  width: 100%;
  min-height: 0;
  margin: 0 0 12px;
  break-inside: avoid;
  gap: 7px;
  padding: 0 0 10px;
  border: 1px solid rgba(31, 13, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(31, 13, 39, 0.08);
  overflow: hidden;
  transform: none;
  animation: none;
}

#storeView .product-card > * {
  min-width: 0;
}

#storeView .product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.12);
}

#storeView .product-card:nth-child(4n + 2),
#storeView .product-card:nth-child(4n + 3) {
  margin-top: 10px;
}

#storeView .product-card::before {
  top: 10px;
  right: auto;
  left: 8px;
  width: auto;
  min-width: 0;
  max-width: calc(100% - 16px);
  transform: none;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 0.66rem;
  line-height: 1;
}

#storeView .product-card .product-image {
  --image-frame-inset: 14px;
  height: clamp(138px, 21vw, 220px);
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

#storeView .product-card:nth-child(3n + 1) .product-image {
  height: clamp(158px, 24vw, 244px);
}

#storeView .product-card:nth-child(5n + 2) .product-image {
  height: clamp(132px, 20vw, 210px);
}

#storeView .product-image > img:not(.product-promo-footer) {
  inset: var(--image-frame-inset);
  width: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
  height: calc(100% - var(--image-frame-inset) - var(--image-frame-inset));
}

#storeView .product-card .tag-row {
  display: flex;
  gap: 4px;
  min-height: 0;
  padding: 0 10px;
  margin-top: 1px;
  overflow: hidden;
}

#storeView .product-card .tag {
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.64rem;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#storeView .product-card .tag-row .tag:not(.warn):not(:first-child) {
  display: none;
}

#storeView .product-card h3 {
  min-height: 0;
  margin: 0;
  padding: 0 10px;
  color: #333;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#storeView .product-card .promo-mechanic-badge,
#storeView .product-card .promo-mechanic-note {
  margin: 0 10px;
}

#storeView .product-card .price-line {
  display: grid;
  gap: 2px;
  padding: 0 10px;
  background: transparent;
}

#storeView .product-card .price-line small {
  max-width: 100%;
  color: #0a8f4a;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#storeView .product-card .price-line strong {
  color: #222;
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#storeView .product-card > small {
  margin: -2px 10px 0;
  color: #00a650;
  font-size: 0.78rem;
  font-weight: 850;
}

#storeView .product-card .admin-cost-line,
#storeView .product-card .quick-price-cell--card,
#storeView .product-card .seller-negotiation-box {
  margin: 0 10px;
}

#storeView .product-card .admin-cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
}

#storeView .product-card .admin-cost-line strong,
#storeView .product-card .admin-cost-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#storeView .product-card .quick-price-cell--card {
  padding: 7px;
  border-radius: 7px;
}

#storeView .product-card .quick-price-cell--card > small {
  display: block;
  margin-bottom: 5px;
  font-size: 0.7rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#storeView .product-card .quick-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
}

#storeView .product-card .quick-price-input {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
}

#storeView .product-card .quick-price-row .ghost-button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 8px;
}

#storeView .product-card .product-qty-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  padding: 2px 10px 0;
}

#storeView .product-card .bulk-min-button {
  grid-column: 1 / -1;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.72rem;
}

#storeView .product-card .product-qty-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 42px;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

#storeView .product-card .product-add-button {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(31, 13, 39, 0.1);
  border-radius: 13px;
  background: linear-gradient(135deg, #f8fafc, #edf2f7) !important;
  color: #2b2530 !important;
  box-shadow: 0 10px 18px rgba(31, 13, 39, 0.08);
  font: inherit;
  font-size: clamp(0.78rem, 3vw, 0.9rem);
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.06s ease,
    box-shadow 0.06s ease,
    filter 0.06s ease;
}

#storeView .product-card .product-add-button::before,
#storeView .product-card .product-qty-box::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 18px;
}

#storeView .product-card.product-card--offer .product-add-button {
  background: linear-gradient(135deg, #ff5a4f, #c51f2c) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(197, 31, 44, 0.24);
}

#storeView .product-card.product-card--featured .product-add-button {
  background: linear-gradient(135deg, #7c3aed, #4b0f6b) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(76, 29, 149, 0.24);
}

#storeView .product-card.product-card--custom .product-add-button,
#storeView .product-card.product-card--showcase .product-add-button {
  background: linear-gradient(135deg, #1f7ad8, #0f4f96) !important;
  color: #fff !important;
  border-color: transparent;
}

#storeView .product-card .product-add-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

#storeView .product-card .product-add-button:active,
#storeView .product-card .product-qty-box:active,
.card-qty-picker-list button:active {
  transform: scale(0.985);
  filter: brightness(1.04);
}

#storeView .product-card .product-qty-box {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: min(84px, 100%);
  min-width: 0;
  min-height: 42px;
  padding: 0 6px;
  border: 1px solid rgba(91, 26, 120, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #211229;
  box-shadow: 0 10px 18px rgba(31, 13, 39, 0.1);
  font-size: 1.05rem;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.06s ease,
    box-shadow 0.06s ease,
    border-color 0.06s ease;
}

#storeView .product-card .product-qty-box:hover,
#storeView .product-card .product-qty-box:focus-visible {
  border-color: rgba(91, 26, 120, 0.34);
  outline: none;
}

.card-qty-picker {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

body.card-qty-picker-open {
  overflow: hidden;
}

.card-qty-picker-panel {
  position: relative;
  width: min(100vw, 560px);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.22);
  animation: cardQtySheetIn 0.16s ease-out;
}

@keyframes cardQtySheetIn {
  from {
    transform: translateY(18px);
  }

  to {
    transform: translateY(0);
  }
}

.card-qty-picker-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #444;
  font-size: 2rem;
  font-weight: 350;
  line-height: 1;
  cursor: pointer;
}

.card-qty-picker-head {
  padding: 26px 72px 24px 24px;
  border-bottom: 1px solid rgba(31, 13, 39, 0.08);
  color: #333;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.card-qty-picker-body {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.card-qty-picker-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(91, 26, 120, 0.2);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.12rem;
  font-weight: 950;
  text-align: center;
  outline: none;
}

.card-qty-picker-input:focus {
  border-color: rgba(91, 26, 120, 0.48);
  box-shadow: 0 0 0 3px rgba(91, 26, 120, 0.12);
}

.card-qty-picker-list {
  display: grid;
  gap: 0;
}

.card-qty-picker-list button {
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid rgba(31, 13, 39, 0.08);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.06s ease,
    border-color 0.06s ease,
    background 0.06s ease,
    box-shadow 0.06s ease;
}

.card-qty-picker-list button:hover,
.card-qty-picker-list button:focus-visible {
  background: #f5f5f5;
  outline: none;
}

.card-qty-picker-list button.current {
  background: #f3f3f3;
  font-weight: 900;
  box-shadow: none;
}

.card-qty-picker-list button.bulk-target {
  background: #f3f3f3;
  color: #5b1a78;
  font-weight: 950;
  box-shadow: none;
}

.card-qty-picker--offer .card-qty-picker-list button.bulk-target {
  color: #c51f2c;
}

.card-qty-picker--featured .card-qty-picker-list button.bulk-target {
  color: #5b1a78;
}

.card-qty-picker--showcase .card-qty-picker-list button.bulk-target {
  color: #0f4f96;
}

.card-qty-picker--common .card-qty-picker-list button.bulk-target {
  color: #2b2530;
}

.card-qty-picker-more {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(31, 13, 39, 0.08);
  background: #fff;
}

.card-qty-picker-more.is-open {
  display: grid;
}

.card-qty-picker-more .primary-button {
  min-width: 108px;
}

.card-qty-picker-remove {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-top: 1px solid rgba(31, 13, 39, 0.08);
  background: #fff;
  color: #c51f2c;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

#storeView .product-card--offer {
  border-color: rgba(0, 166, 80, 0.24);
}

#storeView .product-card--featured {
  border-color: rgba(245, 197, 66, 0.38);
}

@media (min-width: 1180px) {
  #storeView .product-grid {
    column-gap: 14px;
  }
}

@media (max-width: 760px) {
  #storeView .product-grid {
    column-gap: 10px;
  }

  #storeView .product-card {
    margin-bottom: 10px;
  }

  #storeView .product-card .product-image {
    --image-frame-inset: 12px;
    height: clamp(136px, 39vw, 198px);
  }

  #storeView .product-card:nth-child(3n + 1) .product-image {
    height: clamp(152px, 44vw, 222px);
  }

  #storeView .product-card:nth-child(5n + 2) .product-image {
    height: clamp(128px, 36vw, 188px);
  }

  #storeView .product-card h3 {
    font-size: 0.86rem;
  }

  #storeView .product-card .price-line strong {
    font-size: 1.06rem;
  }

  #storeView .product-card .product-qty-control {
    grid-template-columns: 1fr;
  }

  #storeView .product-card .product-qty-row {
    grid-template-columns: 1fr;
    min-height: 40px;
  }

  #storeView .product-card .product-add-button,
  #storeView .product-card .product-qty-box {
    min-height: 40px;
  }

  .card-qty-picker {
    border-radius: 12px;
  }

  .card-qty-picker-list {
    max-height: 224px;
  }

  .card-qty-picker-list button {
    min-height: 40px;
  }
}

#checkoutPageSubmitButton,
#checkoutFinalOfferSend,
#confirmOrderButton,
.checkout-final-button,
.whatsapp-final-cta {
  position: relative;
  min-height: 58px !important;
  border: 2px solid rgba(255, 255, 255, 0.72) !important;
  background: linear-gradient(135deg, #d71920, #a80f18 72%, #6f0710) !important;
  color: #fff !important;
  font-weight: 1000 !important;
  letter-spacing: 0;
  box-shadow:
    0 16px 34px rgba(215, 25, 32, 0.3),
    0 0 0 4px rgba(215, 25, 32, 0.1) !important;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 40px minmax(48px, 1fr) 40px;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.quantity-stepper-button,
.quantity-stepper-value {
  position: relative;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(31, 13, 39, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #211229;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.quantity-stepper-button::before,
.quantity-stepper-value::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 16px;
}

.quantity-stepper-button {
  font-size: 1.24rem;
  line-height: 1;
}

.quantity-stepper-value {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff, #f7f4fa);
  color: var(--primary);
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(91, 26, 120, 0.04);
}

.quantity-stepper-plus {
  background: linear-gradient(135deg, #19a75b, #0d7d3d);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(25, 167, 91, 0.16);
}

.quantity-stepper-minus {
  color: #7b2aa1;
}

.quantity-stepper-button:disabled,
.quantity-stepper-value:disabled {
  opacity: 0.44;
  cursor: not-allowed;
  box-shadow: none;
}

.quantity-stepper-button:active,
.quantity-stepper-value:active {
  transform: scale(0.985);
  filter: brightness(1.04);
}

.quantity-stepper--offer .quantity-stepper-plus {
  background: linear-gradient(135deg, #ff5a4f, #c51f2c);
}

.quantity-stepper--featured .quantity-stepper-plus {
  background: linear-gradient(135deg, #7c3aed, #4b0f6b);
}

.quantity-stepper--showcase .quantity-stepper-plus {
  background: linear-gradient(135deg, #1f7ad8, #0f4f96);
}

#storeView .product-card .product-qty-row {
  grid-template-columns: 1fr !important;
  min-height: 42px;
}

#storeView .product-card .quantity-stepper {
  grid-template-columns: 38px minmax(44px, 1fr) 38px;
}

.cart-item-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.cart-line-limit {
  color: #9f1018;
  font-weight: 900;
}

.checkout-cart-items {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.checkout-cart-item {
  grid-template-columns: 1fr !important;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.checkout-cart-image {
  width: 100%;
  min-height: 142px;
}

.checkout-cart-image img {
  object-fit: contain;
  background: #fff;
}

.checkout-cart-info h3 {
  font-size: 0.98rem;
}

.checkout-cart-controls {
  justify-items: stretch;
  align-self: end;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 13, 39, 0.08);
}

.checkout-cart-controls > strong {
  justify-self: end;
  font-size: 1.05rem;
  color: var(--ink);
}

.card-qty-picker-limit {
  padding: 10px 24px;
  border-bottom: 1px solid rgba(215, 25, 32, 0.14);
  background: #fff5f5;
  color: #9f1018;
  font-weight: 900;
}

@media (max-width: 680px) {
  .checkout-cart-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .checkout-cart-item {
    padding: 9px;
  }

  .checkout-cart-image {
    min-height: clamp(116px, 34vw, 150px);
  }

  .checkout-cart-info {
    gap: 5px;
  }

  .checkout-cart-info h3 {
    font-size: 0.84rem;
  }

  .checkout-cart-info small,
  .cart-line-limit {
    font-size: 0.72rem;
    line-height: 1.22;
  }

  .checkout-cart-controls .quantity-stepper {
    grid-template-columns: 34px minmax(34px, 1fr) 34px;
    gap: 5px;
  }

  .checkout-cart-controls .quantity-stepper-button,
.checkout-cart-controls .quantity-stepper-value {
    min-height: 38px;
    border-radius: 10px;
  }
}

#cartView .checkout-page-shell {
  gap: 14px;
}

#cartView .checkout-main-panel,
#cartView .checkout-summary-panel {
  box-shadow: 0 12px 32px rgba(var(--shadow-rgb), 0.12);
}

#cartView .checkout-page-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 13, 39, 0.08);
}

#cartView .checkout-page-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
}

#cartView .checkout-page-head p {
  max-width: 760px;
}

.checkout-empty-card {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px dashed rgba(var(--shadow-rgb), 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--shadow-rgb), 0.045));
}

.checkout-empty-card strong {
  font-size: 1.05rem;
}

.checkout-empty-card span {
  color: var(--muted);
  line-height: 1.35;
}

#cartView .checkout-suggestions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 13, 39, 0.08);
}

#cartView .checkout-suggestions--top {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 14px;
}

#cartView .checkout-suggestions--middle {
  margin-bottom: 4px;
}

#cartView .section-heading {
  margin-bottom: 10px;
}

#cartView .section-heading h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
}

#cartView .checkout-offer-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: stretch;
}

#cartView .checkout-offer-card {
  align-content: start;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  min-width: 0;
  box-shadow: 0 10px 24px rgba(var(--shadow-rgb), 0.08);
}

#cartView .checkout-offer-card--special {
  border-color: rgba(215, 25, 32, 0.18);
  background: linear-gradient(180deg, #fff, #fff8f7);
}

#cartView .checkout-offer-image {
  height: clamp(118px, 16vw, 170px);
  aspect-ratio: auto;
  background: #fff;
}

#cartView .checkout-offer-image img {
  object-fit: contain;
  padding: 4px;
}

#cartView .checkout-offer-body {
  gap: 5px;
}

#cartView .checkout-offer-body .tag {
  justify-self: start;
  max-width: 100%;
}

#cartView .checkout-offer-card h3 {
  display: -webkit-box;
  min-height: 2.36em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
  line-height: 1.18;
}

#cartView .checkout-offer-card .price-line {
  gap: 2px;
}

#cartView .checkout-offer-card .price-line small,
#cartView .checkout-offer-card small {
  font-size: 0.72rem;
  line-height: 1.22;
}

#cartView .checkout-offer-card .price-line strong {
  font-size: 1.08rem;
  line-height: 1;
}

#cartView .checkout-offer-add {
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.9rem;
}

#cartView .checkout-offer-card--normal .checkout-offer-add {
  background: linear-gradient(135deg, #2b0a46, #5f1185);
}

#cartView .checkout-offer-card--special .checkout-offer-add {
  background: linear-gradient(135deg, #ff4b45, #b9101b);
}

#cartView .checkout-cart-items {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-items: stretch;
}

#cartView .checkout-cart-item {
  box-shadow: 0 10px 24px rgba(var(--shadow-rgb), 0.07);
}

#cartView .checkout-summary-panel {
  top: 12px;
}

#cartView .checkout-summary-box .total strong {
  color: #b9101b;
  font-size: 1.3rem;
}

@media (max-width: 680px) {
  #cartView .checkout-main-panel,
  #cartView .checkout-summary-panel {
    padding: 12px;
  }

  #cartView .checkout-page-head {
    gap: 10px;
  }

  #cartView .checkout-page-head .ghost-button {
    min-height: 42px;
  }

  #cartView .checkout-offer-grid,
  #cartView .checkout-cart-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #cartView .checkout-offer-card,
  #cartView .checkout-cart-item {
    padding: 8px;
  }

  #cartView .checkout-offer-image {
    height: clamp(104px, 34vw, 136px);
  }

  #cartView .checkout-offer-card h3 {
    font-size: 0.84rem;
  }

  #cartView .checkout-offer-card .price-line strong {
    font-size: 1rem;
  }

  #cartView .checkout-offer-add {
    min-height: 36px;
    font-size: 0.82rem;
  }

  #cartView .checkout-summary-panel {
    order: -1;
  }
}

#checkoutPageSubmitButton::after,
#checkoutFinalOfferSend::after,
#confirmOrderButton::after,
.checkout-final-button::after,
.whatsapp-final-cta::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 2px solid rgba(215, 25, 32, 0.22);
  pointer-events: none;
}

#checkoutPageSubmitButton:hover,
#checkoutFinalOfferSend:hover,
#confirmOrderButton:hover,
.checkout-final-button:hover,
.whatsapp-final-cta:hover {
  background: linear-gradient(135deg, #ef2b33, #c7101d 74%, #850a13) !important;
  box-shadow:
    0 18px 38px rgba(215, 25, 32, 0.38),
    0 0 0 5px rgba(215, 25, 32, 0.14) !important;
  transform: translateY(-1px);
}

#checkoutPageSubmitButton:focus-visible,
#checkoutFinalOfferSend:focus-visible,
#confirmOrderButton:focus-visible,
.checkout-final-button:focus-visible,
.whatsapp-final-cta:focus-visible {
  outline: 4px solid rgba(255, 184, 26, 0.62);
  outline-offset: 3px;
}

#checkoutPageSubmitButton:disabled,
#checkoutFinalOfferSend:disabled,
#confirmOrderButton:disabled,
.checkout-final-button:disabled,
.whatsapp-final-cta:disabled {
  background: #b8aebd !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

@media (prefers-reduced-motion: no-preference) {
  #checkoutPageSubmitButton:not(:disabled),
  #checkoutFinalOfferSend:not(:disabled),
  #confirmOrderButton:not(:disabled),
  .checkout-final-button:not(:disabled),
  .whatsapp-final-cta:not(:disabled) {
    animation: whatsapp-final-cta-pulse 2.6s ease-in-out infinite;
  }
}

@keyframes whatsapp-final-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 16px 34px rgba(215, 25, 32, 0.28),
      0 0 0 4px rgba(215, 25, 32, 0.1);
  }
  50% {
    box-shadow:
      0 20px 42px rgba(215, 25, 32, 0.42),
      0 0 0 9px rgba(215, 25, 32, 0.16);
  }
}

body.premium-gate-open {
  overflow: hidden;
}

.premium-entry-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: -4px 0 18px;
  padding: 18px;
  border: 1px solid rgba(236, 184, 93, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 19, 68, 0.96), rgba(5, 47, 130, 0.94)),
    #061b55;
  color: #fff;
  box-shadow: 0 18px 40px rgba(5, 24, 83, 0.22);
  overflow: hidden;
}

.premium-entry-banner small,
.premium-kicker {
  display: block;
  color: #f5c66d;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-entry-banner h2 {
  margin: 4px 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.premium-entry-banner p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
  line-height: 1.45;
}

.premium-glass-button,
.premium-access-button,
.premium-exit-button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.premium-glass-button {
  min-width: 178px;
  padding: 0 18px;
  background:
    linear-gradient(135deg, rgba(13, 117, 191, 0.72), rgba(6, 78, 59, 0.58)),
    rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 30px rgba(5, 47, 130, 0.28);
  backdrop-filter: blur(14px) saturate(1.25);
}

.premium-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 28px;
  overflow: auto;
}

.premium-gate.hidden {
  display: none;
}

.premium-gate-backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2, 12, 44, 0.98), rgba(4, 32, 99, 0.96) 48%, rgba(2, 52, 74, 0.98)),
    #06123b;
}

.premium-gate-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 860px);
  perspective: 1400px;
}

.premium-gate-logo-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 27, 79, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -18px 42px rgba(0, 0, 0, 0.1),
    0 3px 0 rgba(255, 255, 255, 0.14),
    0 18px 0 rgba(1, 8, 34, 0.18),
    0 34px 76px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(1.28);
  transform: rotateX(1.8deg) translateZ(0);
  animation: premiumFloatLogo 6.4s ease-in-out infinite;
}

.premium-gate-logo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.premium-gate-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.24)),
    rgba(245, 248, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -26px 46px rgba(7, 27, 79, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.58),
    0 16px 0 rgba(4, 18, 62, 0.16),
    0 34px 74px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(24px) saturate(1.32);
  transform: rotateX(1.2deg) translateZ(0);
  animation: premiumFloatCard 7.2s ease-in-out infinite;
}

.premium-gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(315deg, rgba(7, 27, 79, 0.16), transparent 34%);
  mix-blend-mode: soft-light;
}

.premium-gate-card h2 {
  margin: 0;
  color: #071949;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.premium-gate-card p {
  margin: 0;
  color: #31405c;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}

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

.premium-benefits span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: #071949;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -10px 18px rgba(7, 27, 79, 0.06),
    0 2px 0 rgba(255, 255, 255, 0.5),
    0 8px 18px rgba(7, 27, 79, 0.12);
  transform: translateZ(18px);
  animation: premiumFloatChip 5.6s ease-in-out infinite;
}

.premium-benefits span:nth-child(2) {
  animation-delay: 0.35s;
}

.premium-benefits span:nth-child(3) {
  animation-delay: 0.7s;
}

.premium-benefits span:nth-child(4) {
  animation-delay: 1.05s;
}

.premium-password-field {
  display: grid;
  gap: 8px;
}

.premium-password-field span {
  color: #071949;
  font-size: 0.82rem;
  font-weight: 950;
}

.premium-password-field input {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  color: #071949;
  font-size: 1.25rem;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -12px 20px rgba(7, 27, 79, 0.04),
    0 2px 0 rgba(255, 255, 255, 0.58),
    0 12px 26px rgba(7, 27, 79, 0.14);
  backdrop-filter: blur(12px) saturate(1.2);
}

.premium-error {
  color: #075f46 !important;
  font-weight: 950 !important;
}

.premium-access-button {
  background: linear-gradient(135deg, #071949, #0755c9);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -10px 18px rgba(1, 8, 34, 0.22),
    0 4px 0 #04123e,
    0 18px 34px rgba(7, 44, 136, 0.28);
}

.premium-exit-button {
  background:
    linear-gradient(135deg, rgba(13, 117, 191, 0.86), rgba(6, 95, 70, 0.7)),
    rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -10px 18px rgba(2, 52, 74, 0.22),
    0 4px 0 rgba(4, 47, 46, 0.72),
    0 16px 30px rgba(5, 47, 130, 0.26);
}

@keyframes premiumFloatLogo {
  0%,
  100% {
    transform: rotateX(1.8deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotateX(1.8deg) translate3d(0, -8px, 22px);
  }
}

@keyframes premiumFloatCard {
  0%,
  100% {
    transform: rotateX(1.2deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotateX(1.2deg) translate3d(0, -6px, 18px);
  }
}

@keyframes premiumFloatChip {
  0%,
  100% {
    transform: translate3d(0, 0, 18px);
  }
  50% {
    transform: translate3d(0, -4px, 26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-gate-logo-frame,
  .premium-gate-card,
  .premium-benefits span {
    animation: none;
  }
}

body.premium-store-active .hero-strip {
  border-color: rgba(245, 198, 109, 0.42);
  background:
    linear-gradient(135deg, rgba(3, 19, 68, 0.96), rgba(4, 43, 122, 0.94)),
    #061b55;
  color: #fff;
}

body.premium-store-active .hero-strip .hero-copy strong,
body.premium-store-active .hero-strip .hero-copy p,
body.premium-store-active .hero-strip .hero-copy span {
  color: #fff;
}

body.premium-store-active #storeView .catalog-area {
  background:
    linear-gradient(180deg, rgba(6, 27, 85, 0.08), rgba(255, 255, 255, 0.98) 360px),
    #fff;
}

body.premium-store-active #storeView .section-heading h2 {
  color: #071949;
}

body.premium-store-active #storeView .product-card {
  border-color: rgba(245, 198, 109, 0.28);
  box-shadow: 0 10px 26px rgba(7, 27, 79, 0.13);
}

body.premium-store-active #storeView .product-card .price-line small,
body.premium-store-active #storeView .product-card > small {
  color: #935f08;
}

body.premium-store-active #storeView .product-card .product-add-button {
  background: linear-gradient(135deg, #071949, #0c5ed7) !important;
  color: #fff !important;
  border-color: rgba(245, 198, 109, 0.34);
}

/* Store search dock refresh */
#storeView .catalog-area > .toolbar.store-search-dock {
  position: sticky;
  top: var(--store-toolbar-sticky-top, 12px);
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(128px, 168px);
  gap: 10px;
  align-items: center;
  margin: -8px auto 18px;
  width: min(100%, 860px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.88)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--primary-rgb), 0.14));
  box-shadow: 0 18px 42px rgba(31, 13, 39, 0.18);
  backdrop-filter: blur(18px) saturate(1.2);
  transform: translateZ(0);
}

#storeView .store-search-field {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 20px rgba(62, 27, 91, 0.08);
  color: var(--muted);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#storeView .store-search-field:focus-within {
  border-color: rgba(var(--accent-rgb), 0.78);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.34), 0 14px 30px rgba(62, 27, 91, 0.16);
  transform: translateY(-1px);
}

#storeView .store-search-field > span:first-child,
#storeView .store-sort-field > span {
  display: none;
}

#storeView .store-search-icon {
  grid-row: 1 / 3;
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd983);
  box-shadow: 0 8px 18px rgba(243, 169, 31, 0.28);
}

#storeView .store-search-icon::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 3px solid #2a1702;
  border-radius: 50%;
}

#storeView .store-search-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 3px;
  border-radius: 999px;
  background: #2a1702;
  transform: translate(10px, 10px) rotate(45deg);
}

#storeView .store-search-field input#storeSearch {
  grid-column: 2;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.15;
  outline: none;
}

#storeView .store-search-field input#storeSearch::placeholder {
  color: rgba(29, 21, 36, 0.62);
  opacity: 1;
}

#storeView .store-search-prompt {
  grid-column: 2;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#storeView .store-sort-field {
  min-width: 0;
}

#storeView .store-sort-field select#storeSort {
  min-height: 54px;
  padding: 0 32px 0 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(62, 27, 91, 0.07);
}

#storeView .store-search-field .product-search-suggestions {
  z-index: 1300;
  top: calc(100% + 10px);
  left: 8px;
  right: 8px;
  max-height: min(360px, 54vh);
  border-radius: 18px;
  border-color: rgba(var(--primary-rgb), 0.14);
  box-shadow: 0 22px 44px rgba(31, 13, 39, 0.2);
}

@media (min-width: 1101px) {
  #storeView .catalog-area > .toolbar.store-search-dock {
    top: 14px;
  }
}

@media (max-width: 900px) {
  .premium-entry-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .premium-glass-button {
    width: 100%;
  }

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

  #storeView .catalog-area > .toolbar.store-search-dock {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 126px);
    width: 100%;
    margin: -4px 0 14px;
    padding: 7px;
  }

  #storeView .store-search-field {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 8px;
    padding-right: 10px;
  }

  #storeView .store-search-icon {
    width: 38px;
    height: 38px;
  }

  #storeView .store-search-field input#storeSearch {
    font-size: 0.96rem;
  }

  #storeView .store-sort-field select#storeSort {
    min-height: 50px;
    padding-left: 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .premium-gate {
    padding: 14px;
    align-items: start;
  }

  .premium-gate-panel {
    gap: 12px;
  }

  .premium-gate-card {
    padding: 18px;
  }

  .premium-gate-card h2 {
    font-size: 1.7rem;
  }

  .premium-benefits {
    grid-template-columns: 1fr;
  }

  #storeView .catalog-area > .toolbar.store-search-dock {
    top: var(--store-toolbar-sticky-top, 86px);
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
  }

  #storeView .store-search-field {
    min-height: 56px;
  }

  #storeView .store-sort-field {
    display: none;
  }

  #storeView .store-search-prompt {
    font-size: 0.68rem;
  }

  #storeView .store-search-field .product-search-suggestions {
    left: 0;
    right: 0;
    max-height: min(330px, 48vh);
  }
}

/* Store topbar refresh without top cart */
.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 236, 0.82)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--primary-rgb), 0.13));
  box-shadow: 0 18px 42px rgba(31, 13, 39, 0.14);
  backdrop-filter: blur(18px) saturate(1.18);
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), transparent 36%),
    radial-gradient(circle at 96% 18%, rgba(var(--primary-rgb), 0.16), transparent 11rem);
}

.topbar > div {
  position: relative;
  z-index: 1;
}

.topbar .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.topbar h1 {
  color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 0.98;
}

.topbar-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(138px, auto);
  align-items: center;
  gap: 10px;
  min-width: min(100%, 430px);
}

.topbar-actions .whatsapp-button,
.topbar-actions #customerAccessButton {
  min-height: 52px;
  border-radius: 999px;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.08);
}

.topbar-actions .whatsapp-button {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #18a957, #12b866);
  color: #fff;
}

.topbar-actions #customerAccessButton {
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: -6px -4px 14px;
    padding: 16px;
    border-radius: 22px;
  }

  .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    width: 100%;
  }

  .topbar-actions .whatsapp-button,
  .topbar-actions #customerAccessButton {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
  }
}

/* Store search follows scroll */
@media (max-width: 680px) {
  #storeView .catalog-area > .toolbar.store-search-dock {
    top: 0;
  }

  body.store-toolbar-is-fixed #storeView .catalog-area > .toolbar.store-search-dock {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    z-index: 180;
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(31, 13, 39, 0.22);
  }

  body.store-toolbar-is-fixed #storeView .delivery-note {
    margin-top: calc(var(--store-toolbar-height, 68px) + 18px);
  }
}


/* v3.04.01 Equipe de Sugestões e experiência gráfica premium */
.store-team-hub,
.store-spotlight,
.cart-drawer-team-suggestions,
.suggestion-team-admin-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 235, 0.86)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--primary-rgb), 0.1));
  box-shadow: 0 18px 42px rgba(31, 13, 39, 0.12);
  backdrop-filter: blur(18px) saturate(1.16);
}

.store-team-hub {
  width: min(100%, 980px);
  margin: -4px auto 18px;
  padding: 14px;
  border-radius: 24px;
}

.store-team-hub-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.store-team-hub-head small,
.store-spotlight-head small {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.store-team-hub-head h2,
.store-spotlight-head h2 {
  margin: 2px 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  line-height: 1.05;
}

.store-team-hub-head p,
.store-spotlight-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.store-result-pill,
.store-count-link {
  display: inline-grid;
  gap: 1px;
  min-width: 154px;
  padding: 10px 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 9px 20px rgba(31, 13, 39, 0.08);
  cursor: pointer;
}

.store-result-pill strong,
.store-count-link strong {
  color: var(--primary);
  font-size: 1.18rem;
  line-height: 1;
}

.store-result-pill span,
.store-count-link {
  font-weight: 1000;
}

.store-result-pill small,
.store-count-link span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.store-result-pill.is-static {
  cursor: default;
}

.store-team-chip-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px 7px;
  scroll-snap-type: x proximity;
}

.store-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  padding: 8px 12px 8px 8px;
  border: 1px solid color-mix(in srgb, var(--team-accent, var(--primary)) 22%, #fff);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 9px 18px rgba(31, 13, 39, 0.08);
  scroll-snap-align: start;
}

.store-team-chip.is-active,
.store-team-chip:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--team-accent, var(--primary)) 16%, #fff), #fff);
  transform: translateY(-1px);
}

.store-team-chip strong,
.store-team-chip small {
  display: block;
  text-align: left;
  line-height: 1.05;
}

.store-team-chip small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.team-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,0.95), transparent 35%),
    linear-gradient(145deg, color-mix(in srgb, var(--team-accent, var(--primary)) 72%, #fff), #fff3c4);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7), 0 10px 22px rgba(31,13,39,0.16);
  color: var(--ink);
  font-weight: 1000;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.08) contrast(1.03);
}

.team-avatar--chip {
  width: 42px;
  height: 42px;
}

.team-avatar--hero {
  width: 86px;
  height: 86px;
}

.team-avatar--mini {
  width: 46px;
  height: 46px;
}

.team-avatar--admin {
  width: 112px;
  height: 112px;
}

.store-spotlight {
  width: min(100%, 1060px);
  margin: 0 auto 20px;
  padding: 16px;
  border-radius: 26px;
}

.store-spotlight.hidden {
  display: none;
}

.store-spotlight-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.store-spotlight-grid {
  margin-top: 0;
}

.product-search-suggestions button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
}

.product-search-copy {
  min-width: 0;
}

.suggestion-product-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7d8, #f3eafa);
  color: var(--primary);
  font-weight: 1000;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.09);
}

.suggestion-product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-product-thumb--small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.cart-side-peek {
  display: grid;
  align-content: center;
  justify-items: center;
  right: -6px;
  top: 50%;
  width: 58px;
  min-height: 86px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.96);
  color: var(--primary);
}

.cart-side-peek--warning {
  background: linear-gradient(145deg, #fff8dd, #f3a91f);
  color: #2a1702;
}

.cart-side-peek--success {
  background: linear-gradient(145deg, #effaf2, #19a75b);
  color: #062814;
}

.cart-side-peek .cart-side-subtotal {
  display: block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  color: currentColor;
  font-size: 0.74rem;
  font-weight: 1000;
  transition: max-width 180ms ease, opacity 180ms ease;
}

.cart-side-peek.is-subtotal-peek,
.cart-side-peek:hover {
  width: auto;
  min-width: 132px;
  padding-right: 13px;
}

.cart-side-peek.is-subtotal-peek .cart-side-subtotal,
.cart-side-peek:hover .cart-side-subtotal {
  max-width: 96px;
  opacity: 1;
}

.cart-drawer-team-suggestions {
  padding: 12px;
  border-radius: 18px;
}

.cart-drawer-team-suggestions.hidden {
  display: none;
}

.cart-team-suggestion-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.cart-team-suggestion-head strong,
.cart-team-suggestion-head span {
  display: block;
}

.cart-team-suggestion-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.cart-team-suggestion-list {
  display: grid;
  gap: 8px;
}

.cart-team-suggestion-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  text-align: left;
}

.cart-team-suggestion-list strong,
.cart-team-suggestion-list small {
  display: block;
}

.cart-team-suggestion-list small {
  color: var(--primary);
  font-weight: 1000;
}

.suggestion-team-admin-intro {
  margin-bottom: 16px;
}

.suggestion-team-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.suggestion-team-admin-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
}

.suggestion-team-admin-photo {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
}

.suggestion-team-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.suggestion-team-admin-fields .wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .store-team-hub-head,
  .store-spotlight-head,
  .suggestion-team-admin-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-result-pill {
    width: 100%;
  }

  .team-avatar--hero {
    width: 68px;
    height: 68px;
  }
}


/* v3.04.01 Cart preview quick layer */
.cart-side-preview {
  position: fixed;
  top: 50%;
  right: 68px;
  z-index: 170;
  width: min(340px, calc(100vw - 92px));
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, -50%) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-side-preview.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.cart-side-preview-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,248,229,0.9)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--primary-rgb), 0.1));
  box-shadow: 0 22px 54px rgba(31, 13, 39, 0.22);
  backdrop-filter: blur(18px) saturate(1.18);
}

.cart-side-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-side-preview-head small {
  display: block;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.cart-side-preview-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.05;
}

.cart-side-preview-items {
  display: grid;
  gap: 8px;
}

.cart-side-preview-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.cart-side-preview-item strong,
.cart-side-preview-item span,
.cart-side-preview-empty strong,
.cart-side-preview-empty span {
  display: block;
}

.cart-side-preview-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-side-preview-item span,
.cart-side-preview-empty span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.cart-side-preview-empty {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
}

.cart-side-preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f0d27, #64209a);
  color: #fff;
}

.cart-side-preview-summary span {
  font-weight: 850;
  opacity: 0.82;
}

.cart-side-preview-summary strong {
  font-size: 1.08rem;
  font-weight: 1000;
}

.cart-side-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 760px) {
  .cart-side-preview {
    right: 16px;
    top: auto;
    bottom: 104px;
    width: min(340px, calc(100vw - 32px));
    transform: translateY(12px) scale(0.96);
  }

  .cart-side-preview.is-open {
    transform: translateY(0) scale(1);
  }
}


/* v3.04.01 Premium team visual pass */
.store-team-hub {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.store-team-hub::before,
.store-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--team-accent, var(--accent)) 18%, transparent), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(255,255,255,0.92), transparent 7rem);
}

.store-team-hub > *,
.store-spotlight > * {
  position: relative;
  z-index: 1;
}

.store-team-hub-title,
.store-spotlight-identity,
.checkout-team-suggestions-title {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.team-avatar--hub {
  width: 64px;
  height: 64px;
}

.store-team-chip {
  min-height: 60px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.store-team-chip::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--team-accent, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--team-accent, var(--accent)) 16%, transparent);
}

.store-team-chip.is-active {
  box-shadow: 0 14px 26px color-mix(in srgb, var(--team-accent, var(--primary)) 18%, transparent);
}

.store-spotlight {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--team-accent, var(--primary)) 18%, #fff);
}

.store-spotlight-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.store-spotlight-metrics {
  display: flex;
  gap: 8px;
}

.store-spotlight-metrics span {
  display: grid;
  min-width: 72px;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb),0.08);
}

.store-spotlight-metrics strong {
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

.store-spotlight-metrics small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.checkout-team-suggestions {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,249,233,0.9)),
    linear-gradient(135deg, rgba(var(--accent-rgb),0.14), rgba(var(--primary-rgb),0.08));
  box-shadow: 0 18px 36px rgba(31,13,39,0.1);
}

.checkout-team-suggestions-head {
  margin-bottom: 12px;
}

.checkout-team-suggestions-title small {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.checkout-team-suggestions-title h2 {
  margin: 1px 0;
  color: var(--ink);
  line-height: 1.05;
}

.checkout-team-suggestions-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

@media (max-width: 760px) {
  .store-team-hub-title,
  .store-spotlight-identity,
  .checkout-team-suggestions-title {
    align-items: flex-start;
  }

  .store-spotlight-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-spotlight-metrics {
    width: 100%;
  }

  .store-spotlight-metrics span {
    flex: 1;
  }
}


/* v3.04.01 Cart notification reliability */
.cart-side-peek.is-cart-bump {
  animation: cart-side-bump-strong 1050ms cubic-bezier(.2, .9, .22, 1) both;
}

.cart-side-peek.is-cart-bump .cart-side-icon,
.cart-side-peek.is-cart-bump #cartSideCount,
.cart-side-peek.is-cart-bump .cart-side-subtotal {
  animation: cart-side-flash-strong 1050ms ease both;
}

@keyframes cart-side-bump-strong {
  0% {
    transform: translateY(-50%) translateX(0) scale(1);
    filter: brightness(1);
  }
  18% {
    transform: translateY(-50%) translateX(-18px) scale(1.08);
    filter: brightness(1.18);
  }
  42% {
    transform: translateY(-50%) translateX(-8px) scale(1.03);
  }
  68% {
    transform: translateY(-50%) translateX(-14px) scale(1.06);
    filter: brightness(1.12);
  }
  100% {
    transform: translateY(-50%) translateX(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes cart-side-flash-strong {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(31, 13, 39, 0.18);
  }
  24%,
  62% {
    box-shadow:
      0 0 0 6px rgba(243, 169, 31, 0.26),
      0 10px 22px rgba(25, 167, 91, 0.28);
  }
}


/* v3.04.01 Team nudge assistant */
.team-nudge {
  --team-accent: var(--primary);
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 58;
  pointer-events: none;
}

.team-nudge.is-empty {
  display: none;
}

.team-nudge-button {
  appearance: none;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  max-width: 142px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 236, 0.9)),
    linear-gradient(135deg, color-mix(in srgb, var(--team-accent) 22%, transparent), rgba(var(--accent-rgb), 0.16));
  color: #1f0d27;
  box-shadow:
    0 18px 38px rgba(31, 13, 39, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.team-nudge-button:hover,
.team-nudge.is-open .team-nudge-button {
  border-color: color-mix(in srgb, var(--team-accent) 38%, #fff);
  box-shadow:
    0 22px 46px color-mix(in srgb, var(--team-accent) 24%, rgba(31, 13, 39, 0.18)),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

.team-nudge-button::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid color-mix(in srgb, var(--team-accent) 24%, transparent);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.team-nudge:not(.is-open) .team-nudge-button::after {
  animation: team-nudge-idle-pulse 3.8s ease-in-out infinite;
}

.team-nudge-button-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--team-accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 1000;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.64);
}

.team-nudge-button-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-nudge-button-copy {
  display: grid;
  min-width: 0;
  line-height: 1;
  text-align: left;
}

.team-nudge-button-copy strong {
  font-size: 0.82rem;
  font-weight: 1000;
}

.team-nudge-button-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-nudge-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 24px));
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.84);
  transform-origin: 26px 100%;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .9, .22, 1);
}

.team-nudge.is-open .team-nudge-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.team-nudge-popover::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18px -22px -20px -22px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 14%, rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-aura-strong-alpha)), transparent 34%),
    radial-gradient(circle at 76% 68%, rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-aura-mid-alpha)), transparent 42%),
    radial-gradient(circle at 42% 118%, rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-aura-soft-alpha)), transparent 46%);
  filter: blur(18px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
}

.team-nudge.is-open .team-nudge-popover::before {
  animation:
    team-nudge-open-aura 1500ms cubic-bezier(.2, .9, .22, 1) both,
    team-nudge-steady-aura 5200ms ease-in-out 1500ms infinite;
}

.team-nudge-popover::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(45deg);
  pointer-events: none;
}

.team-nudge-content {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 237, 0.9)),
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--team-accent) 22%, transparent), transparent 42%);
  box-shadow:
    0 24px 58px rgba(31, 13, 39, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.team-nudge.is-open .team-nudge-content {
  animation:
    team-nudge-content-flash 1450ms cubic-bezier(.2, .9, .22, 1) both,
    team-nudge-content-glow 5200ms ease-in-out 1450ms infinite;
}

.team-nudge-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-right: 40px;
}

.team-avatar--nudge {
  width: 48px;
  height: 48px;
}

.team-nudge-head small {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.team-nudge-head h2 {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.05;
}

.team-nudge-role {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.08;
}

.team-nudge-close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
}

.team-nudge-message {
  margin: 12px 0;
  color: #33213b;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.32;
}

.team-nudge-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(var(--primary-rgb), 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.team-nudge-product-thumb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.team-nudge-product strong,
.team-nudge-product span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-nudge-product strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 1000;
}

.team-nudge-product span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.team-nudge-product b {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 1000;
  white-space: nowrap;
}

.team-nudge-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.team-nudge-actions .compact {
  min-height: 38px;
  padding-inline: 8px;
  font-size: 0.72rem;
}

.team-nudge-nav,
.team-nudge-add-row {
  display: grid;
  gap: 8px;
}

.team-nudge-nav {
  grid-template-columns: 1fr 1fr;
}

.team-nudge-add-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.team-nudge-qty {
  display: inline-grid;
  grid-template-columns: 34px minmax(28px, auto) 34px;
  align-items: center;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--team-accent) 24%, rgba(31, 13, 39, 0.1));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.team-nudge-qty button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 1000;
}

.team-nudge-qty button:disabled {
  color: rgba(85, 72, 94, 0.38);
  cursor: default;
}

.team-nudge-qty strong {
  min-width: 28px;
  color: #321241;
  font-size: 0.86rem;
  font-weight: 1000;
  text-align: center;
}

@keyframes team-nudge-open-aura {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  42% {
    opacity: 0.98;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.54;
    transform: scale(1);
  }
}

@keyframes team-nudge-steady-aura {
  0%, 100% {
    opacity: 0.48;
    transform: scale(1);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.025);
  }
}

@keyframes team-nudge-content-flash {
  0% {
    box-shadow:
      0 24px 58px rgba(31, 13, 39, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }
  42% {
    box-shadow:
      0 0 0 5px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-ring-strong-alpha)),
      0 0 38px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-flash-alpha)),
      0 32px 78px rgba(31, 13, 39, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
  100% {
    box-shadow:
      0 0 0 3px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-ring-alpha)),
      0 0 18px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-alpha)),
      0 26px 64px rgba(31, 13, 39, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }
}

@keyframes team-nudge-content-glow {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-ring-alpha)),
      0 0 18px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-alpha)),
      0 26px 64px rgba(31, 13, 39, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-ring-pulse-alpha)),
      0 0 26px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-pulse-alpha)),
      0 30px 70px rgba(31, 13, 39, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes team-nudge-idle-pulse {
  0%, 72%, 100% {
    opacity: 0;
    transform: scale(0.9);
  }
  82% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .team-nudge {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .team-nudge-button {
    max-width: 54px;
    min-height: 54px;
    padding: 6px;
  }

  .team-nudge-button-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .team-nudge-button-avatar {
    width: 42px;
    height: 42px;
  }

  .team-nudge-popover {
    width: min(344px, calc(100vw - 24px));
  }

  .team-nudge-actions {
    grid-template-columns: 1fr;
  }
}


/* v3.04.01 Premium compact global hero */
body .hero-strip {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 180px);
  align-items: center;
  gap: 18px;
  min-height: 112px;
  max-height: 164px;
  margin: 0 0 16px;
  padding: 15px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 88% 30%, rgba(var(--accent-rgb), 0.24), transparent 9rem),
    linear-gradient(135deg, rgba(31, 13, 39, 0.96), rgba(var(--primary-rgb), 0.86));
  color: #fff;
  box-shadow:
    0 18px 38px rgba(var(--shadow-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body .hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 2% 0%, rgba(255, 255, 255, 0.12), transparent 10rem);
}

body .hero-copy {
  display: grid;
  gap: 5px;
  max-width: 760px;
}

body .hero-copy span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0;
}

body .hero-copy strong {
  max-width: 820px;
  color: #fff;
  font-size: clamp(1.08rem, 1.9vw, 1.78rem);
  line-height: 1.08;
}

body .hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.28;
}

body .hero-logo-frame,
body:not([data-app-theme="tradicional"]) .hero-logo-frame {
  display: grid;
  place-items: center;
  justify-self: end;
  align-self: center;
  width: min(20vw, 176px);
  min-width: 112px;
  height: 126px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.92), transparent 4.7rem),
    rgba(255, 255, 255, 0.08);
}

body .hero-logo,
body:not([data-app-theme="tradicional"]) .hero-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.26));
}

body .hero-logo-frame.missing-logo {
  min-height: 112px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

@media (max-width: 760px) {
  body .hero-strip {
    grid-template-columns: minmax(0, 1fr) 86px;
    min-height: 92px;
    max-height: 124px;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border-radius: 18px;
  }

  body .hero-copy {
    gap: 3px;
  }

  body .hero-copy span {
    font-size: 0.6rem;
  }

  body .hero-copy strong {
    font-size: clamp(0.98rem, 4vw, 1.18rem);
    line-height: 1.08;
  }

  body .hero-copy p {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.18;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body .hero-logo-frame,
  body:not([data-app-theme="tradicional"]) .hero-logo-frame {
    justify-self: end;
    width: 86px;
    min-width: 86px;
    height: 86px;
    border-radius: 16px;
  }

  body .hero-logo,
  body:not([data-app-theme="tradicional"]) .hero-logo {
    max-height: 92px;
  }
}

@media (max-width: 430px) {
  body .hero-strip {
    grid-template-columns: minmax(0, 1fr) 68px;
    min-height: 84px;
    max-height: 108px;
  }

  body .hero-copy p {
    display: none;
  }

  body .hero-logo-frame,
  body:not([data-app-theme="tradicional"]) .hero-logo-frame {
    width: 68px;
    min-width: 68px;
    height: 68px;
  }

  body .hero-logo,
  body:not([data-app-theme="tradicional"]) .hero-logo {
    max-height: 76px;
  }
}


/* v3.04.01 definitive sticky search with voice and camera */
#storeView .catalog-area > .toolbar.store-search-dock {
  top: var(--store-toolbar-sticky-top, 12px);
  z-index: 220;
}

#storeView .store-search-field {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

#storeView .store-search-field input#storeSearch {
  grid-column: 2;
}

#storeView .store-search-actions {
  grid-column: 3;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}

#storeView .store-search-tool {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, rgba(255, 248, 232, 0.94));
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(31, 13, 39, 0.08);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

#storeView .store-search-tool:hover,
#storeView .store-search-tool.is-listening {
  border-color: rgba(var(--accent-rgb), 0.62);
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.2);
  transform: translateY(-1px);
}

#storeView .store-search-tool--voice span {
  width: 12px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 999px;
}

#storeView .store-search-tool--voice::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 18px;
  border-bottom: 3px solid currentColor;
  border-radius: 0 0 999px 999px;
  transform: translateY(3px);
}

#storeView .store-search-tool--voice::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(14px);
}

#storeView .store-search-tool--voice.is-listening {
  color: #0d7d3b;
  animation: store-voice-pulse 950ms ease-in-out infinite;
}

#storeView .store-search-tool--camera span {
  width: 19px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 5px;
}

#storeView .store-search-tool--camera span::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: currentColor;
  transform: translate(2px, -8px);
}

#storeView .store-search-tool--camera span::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(4px, 2px);
}

#storeView .store-camera-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@keyframes store-voice-pulse {
  0%, 100% {
    box-shadow: 0 8px 18px rgba(31, 13, 39, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(25, 167, 91, 0.14),
      0 12px 24px rgba(25, 167, 91, 0.2);
  }
}

@media (min-width: 681px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .catalog-area {
    padding-top: var(--store-search-fixed-space, 88px);
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed #storeView .catalog-area > .toolbar.store-search-dock {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    z-index: 260;
    width: auto;
    max-width: none;
    margin: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 7px;
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 232, 0.92)),
      linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--primary-rgb), 0.1));
    box-shadow: 0 18px 42px rgba(31, 13, 39, 0.24);
  }

  #storeView .store-search-field {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 6px 7px 6px 7px;
  }

  #storeView .store-search-actions {
    gap: 4px;
  }

  #storeView .store-search-tool {
    width: 34px;
    height: 34px;
  }

  #storeView .store-search-field input#storeSearch {
    font-size: 0.9rem;
  }

  #storeView .store-search-prompt {
    max-width: 100%;
    font-size: 0.62rem;
  }

  #storeView .store-sort-field {
    display: none;
  }
}

@media (max-width: 390px) {
  #storeView .store-search-icon {
    width: 34px;
    height: 34px;
  }

  #storeView .store-search-tool {
    width: 31px;
    height: 31px;
  }

  #storeView .store-search-tool--voice span {
    width: 10px;
    height: 15px;
    border-width: 2px;
  }

  #storeView .store-search-tool--camera span {
    width: 17px;
    height: 12px;
    border-width: 2px;
  }
}


/* v3.04.01 Team nudge visual emphasis */
.team-nudge-popover {
  width: min(340px, calc(100vw - 24px));
}

.team-nudge-content {
  padding: 12px;
  border-radius: 24px;
}

.team-nudge-head {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-right: 40px;
}

.team-avatar--nudge {
  width: 76px;
  height: 76px;
  border-width: 4px;
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--team-accent) 28%, rgba(31, 13, 39, 0.14)),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.team-nudge-head small {
  font-size: 0.62rem;
  line-height: 1;
}

.team-nudge-head h2 {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-nudge-role {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-nudge-close {
  width: 30px;
  height: 30px;
  top: 12px;
  right: 12px;
}

.team-nudge-message {
  margin: 8px 0 10px;
  font-size: 0.82rem;
  line-height: 1.22;
}

.team-nudge-product {
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-areas:
    "image name"
    "image price";
  align-items: center;
  gap: 10px 12px;
  padding: 10px;
  border-radius: 20px;
}

.team-nudge-product-thumb {
  grid-area: image;
  width: 118px;
  height: 96px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(31, 13, 39, 0.13);
}

.team-nudge-product > div {
  grid-area: name;
  align-self: end;
  min-width: 0;
}

.team-nudge-product strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.12;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.team-nudge-product span {
  margin-top: 4px;
  font-size: 0.64rem;
}

.team-nudge-product b {
  grid-area: price;
  align-self: start;
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-accent) 11%, #fff);
  color: var(--primary);
  font-size: 0.86rem;
}

.team-nudge-actions {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 9px;
}

.team-nudge-actions .compact {
  min-height: 34px;
  border-radius: 14px;
  font-size: 0.66rem;
}

.team-nudge-actions [data-team-nudge-next] {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .team-nudge-popover {
    width: min(330px, calc(100vw - 24px));
  }

  .team-avatar--nudge {
    width: 70px;
    height: 70px;
  }

  .team-nudge-product {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .team-nudge-product-thumb {
    width: 108px;
    height: 90px;
  }

  .team-nudge-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .team-nudge-product {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .team-nudge-product-thumb {
    width: 92px;
    height: 82px;
  }

  .team-avatar--nudge {
    width: 62px;
    height: 62px;
  }
}


/* v3.04.01 search docks only after passing original place */
.store-search-dock-anchor {
  display: block;
  height: 0;
  pointer-events: none;
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .catalog-area {
    padding-top: 0;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 220;
    width: 100%;
    max-width: none;
    margin: -4px 0 14px;
  }

  body.store-toolbar-is-fixed #storeSearchDockAnchor {
    height: var(--store-search-anchor-space, 86px);
  }

  body.store-toolbar-is-fixed #storeView .catalog-area > .toolbar.store-search-dock {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    max-width: none;
    margin: 0;
    z-index: 260;
  }

  body.store-toolbar-is-fixed #storeView .delivery-note {
    margin-top: 0;
  }
}


/* v3.04.01 compact premium app header */
body .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 244, 0.76));
  box-shadow:
    0 10px 24px rgba(31, 13, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.08);
}

body .topbar::before {
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.11), transparent 34%),
    radial-gradient(circle at 98% 0%, rgba(var(--primary-rgb), 0.08), transparent 8rem);
}

body .topbar > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body .topbar .eyebrow {
  min-height: 20px;
  width: fit-content;
  margin: 0;
  padding: 0 9px;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  background: rgba(255, 255, 255, 0.64);
  color: var(--primary);
  font-size: 0.62rem;
  font-weight: 1000;
}

body .topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.86rem);
  line-height: 1;
}

body .topbar-actions {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(116px, 142px);
  gap: 8px;
  min-width: 0;
  width: auto;
}

body .topbar-actions .whatsapp-button,
body .topbar-actions #customerAccessButton {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(31, 13, 39, 0.07);
}

body .topbar-actions .whatsapp-button {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(135deg, #18a957, #13b966);
}

body .topbar-actions #customerAccessButton {
  border-color: rgba(var(--primary-rgb), 0.11);
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  body .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: -2px 0 12px;
    padding: 12px;
    border-radius: 18px;
  }

  body .topbar > div:first-child {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 9px;
  }

  body .topbar .eyebrow {
    min-height: 22px;
    font-size: 0.58rem;
  }

  body .topbar h1 {
    overflow: hidden;
    font-size: 1.45rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body .topbar-actions {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 8px;
    width: 100%;
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 0.76rem;
  }
}

@media (max-width: 390px) {
  body .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    min-height: 40px;
  }
}


/* v3.04.01 topbar half-height action row */
@media (max-width: 760px) {
  body .topbar {
    gap: 8px;
    padding: 10px 12px;
  }

  body .topbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body .topbar .eyebrow {
    flex: 0 0 auto;
    min-height: 20px;
    padding-inline: 9px;
  }

  body .topbar h1 {
    flex: 1 1 auto;
    font-size: 1.36rem;
  }

  body .topbar-actions,
  body .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 0.74rem;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  body .topbar-actions,
  body .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    min-height: 38px;
    font-size: 0.7rem;
  }
}


/* v3.04.01 search overlay priority correction */
@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 42;
  }

  body.store-toolbar-is-fixed #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 52;
  }

  body.team-nudge-open #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 38;
  }
}

body .team-nudge {
  z-index: 340;
}

body .cart-side-preview,
body .cart-drawer,
body .modal-backdrop {
  z-index: 360;
}


/* v3.04.01 topbar wide compact layout */
body .topbar {
  grid-template-columns: minmax(190px, 0.72fr) minmax(320px, 1fr);
  align-items: center;
  min-height: 0;
  padding: 10px 12px;
}

body .topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

body .topbar .eyebrow {
  flex: 0 0 auto;
  margin: 0;
}

body .topbar h1 {
  flex: 1 1 auto;
  min-width: 0;
}

body .topbar-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

body .topbar-actions .whatsapp-button,
body .topbar-actions #customerAccessButton {
  min-height: 42px;
}

@media (min-width: 761px) {
  body .topbar {
    max-height: 92px;
  }
}

@media (max-width: 760px) {
  body .topbar {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* v3.04.01 cart side button raised */
.cart-side-peek {
  top: 40%;
}


/* v3.04.01 visible search results count */
.product-search-suggestions .search-results-total-pill {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 2px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(250, 169, 31, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.98) 52%, rgba(246, 235, 255, 0.96)),
    #fff;
  box-shadow: 0 14px 30px rgba(62, 27, 91, 0.14);
  color: var(--ink);
}

.product-search-suggestions .search-results-total-pill:hover,
.product-search-suggestions .search-results-total-pill:focus {
  background:
    linear-gradient(135deg, rgba(255, 241, 199, 0.98), rgba(255, 255, 255, 0.98) 48%, rgba(239, 222, 255, 0.98)),
    #fff;
  box-shadow: 0 16px 34px rgba(62, 27, 91, 0.2);
}

.search-results-total-number {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #faa91f, #fff1b8);
  color: #2b0a46;
  font-size: 1.2rem;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 20px rgba(250, 169, 31, 0.3);
}

.search-results-total-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-search-suggestions .search-results-total-copy strong {
  color: #2b0a46;
  font-size: 0.94rem;
  line-height: 1.1;
}

.product-search-suggestions .search-results-total-copy small {
  color: #6b3a86;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
}

@media (max-width: 680px) {
  .product-search-suggestions .search-results-total-pill {
    grid-template-columns: 44px minmax(0, 1fr);
    border-radius: 14px;
    padding: 9px 10px;
  }

  .search-results-total-number {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 1rem;
  }
}


/* v3.04.01 team tips always above search */
body .team-nudge,
body .team-nudge.is-open {
  z-index: 620 !important;
  isolation: isolate;
}

body .team-nudge.is-open .team-nudge-popover {
  z-index: 2;
}

@media (max-width: 680px) {
  body.team-nudge-open #storeView .catalog-area > .toolbar.store-search-dock,
  body.team-nudge-open.store-toolbar-is-fixed #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 30 !important;
  }

  body.team-nudge-open #storeView .store-search-field .product-search-suggestions {
    z-index: 31 !important;
  }
}

body .cart-side-preview,
body .cart-drawer,
body .modal-backdrop {
  z-index: 760;
}


/* v3.04.01 lean store access header */
body .topbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.82fr) minmax(250px, 1.18fr) !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
  padding: 8px 10px !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 16px !important;
}

body .topbar > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
}

body .topbar .eyebrow {
  min-height: 20px !important;
  padding: 0 9px !important;
  font-size: 0.58rem !important;
  white-space: nowrap !important;
}

body .topbar h1 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: clamp(1.08rem, 2.2vw, 1.42rem) !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body .topbar-actions {
  display: grid !important;
  grid-template-columns: minmax(110px, 1fr) minmax(130px, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}

body .topbar-actions #customerAccessButton {
  order: 1 !important;
}

body .topbar-actions .whatsapp-button {
  order: 2 !important;
}

body .topbar-actions .whatsapp-button,
body .topbar-actions #customerAccessButton {
  width: 100% !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 14px rgba(31, 13, 39, 0.06) !important;
}

body .topbar-actions .whatsapp-button {
  background: linear-gradient(135deg, #18a957, #11b261) !important;
}

body .topbar-actions #customerAccessButton {
  background: rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 680px) {
  body .topbar {
    grid-template-columns: minmax(150px, 0.82fr) minmax(238px, 1.18fr) !important;
    gap: 8px !important;
    padding: 8px 9px !important;
  }

  body .topbar > div:first-child {
    gap: 7px !important;
  }

  body .topbar .eyebrow {
    max-width: 112px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body .topbar h1 {
    font-size: 1.18rem !important;
  }

  body .topbar-actions {
    grid-template-columns: minmax(102px, 1fr) minmax(122px, 1fr) !important;
    gap: 7px !important;
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    min-height: 32px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-size: 0.66rem !important;
  }
}

@media (max-width: 430px) {
  body .topbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}


/* v3.04.01 force store access buttons side by side */
body .topbar {
  display: grid !important;
  grid-template-columns: minmax(178px, 1fr) minmax(138px, 0.74fr) minmax(154px, 0.86fr) !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  margin-bottom: 10px !important;
  min-height: 58px !important;
  max-height: 78px !important;
}

body .topbar > div:first-child {
  grid-column: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body .topbar-actions {
  display: contents !important;
}

body .topbar-actions #customerAccessButton {
  grid-column: 2 !important;
  order: initial !important;
}

body .topbar-actions .whatsapp-button {
  grid-column: 3 !important;
  order: initial !important;
}

body .topbar-actions .whatsapp-button,
body .topbar-actions #customerAccessButton {
  align-self: center !important;
  justify-self: stretch !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  max-height: 38px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 0.7rem !important;
}

body .topbar .eyebrow {
  max-width: 130px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body .topbar h1 {
  font-size: clamp(1.06rem, 2vw, 1.34rem) !important;
}

@media (max-width: 520px) {
  body .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    min-height: 84px !important;
    max-height: none !important;
  }

  body .topbar > div:first-child {
    grid-column: 1 / -1 !important;
  }

  body .topbar-actions #customerAccessButton {
    grid-column: 1 !important;
  }

  body .topbar-actions .whatsapp-button {
    grid-column: 2 !important;
  }
}


/* v3.04.01 progressive product loading */
#storeView .product-card {
  content-visibility: auto;
  contain-intrinsic-size: 430px 260px;
}

.store-load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 236, 0.88)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(var(--primary-rgb), 0.08));
  box-shadow: 0 12px 26px rgba(31, 13, 39, 0.08);
}

.store-load-more span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.store-load-more strong {
  color: var(--primary);
  font-size: 1rem;
}

.store-load-more .ghost-button {
  min-height: 36px;
  border-radius: 12px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .store-load-more {
    align-items: stretch;
    flex-direction: column;
  }

  .store-load-more .ghost-button {
    width: 100%;
  }
}


/* v3.04.01 hard fix: header buttons on the same row */
body .topbar {
  grid-template-columns: minmax(82px, 0.82fr) minmax(120px, 1fr) minmax(126px, 1.05fr) !important;
  grid-auto-flow: column !important;
  grid-auto-rows: minmax(34px, auto) !important;
  align-items: center !important;
  min-height: 48px !important;
  max-height: 62px !important;
  padding: 7px 8px !important;
}

body .topbar > div:first-child,
body .topbar-actions #customerAccessButton,
body .topbar-actions .whatsapp-button {
  grid-row: 1 !important;
}

body .topbar > div:first-child {
  grid-column: 1 !important;
  min-width: 0 !important;
}

body .topbar-actions #customerAccessButton {
  grid-column: 2 !important;
}

body .topbar-actions .whatsapp-button {
  grid-column: 3 !important;
}

body .topbar .eyebrow {
  max-width: 74px !important;
  padding-inline: 6px !important;
  font-size: 0.5rem !important;
}

body .topbar h1 {
  font-size: 0.96rem !important;
}

body .topbar-actions .whatsapp-button,
body .topbar-actions #customerAccessButton {
  min-height: 32px !important;
  max-height: 34px !important;
  padding: 0 7px !important;
  border-radius: 9px !important;
  font-size: 0.62rem !important;
}

@media (max-width: 520px) {
  body .topbar {
    grid-template-columns: minmax(78px, 0.78fr) minmax(112px, 1fr) minmax(118px, 1.05fr) !important;
    min-height: 46px !important;
    max-height: 60px !important;
  }

  body .topbar > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body .topbar-actions #customerAccessButton {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body .topbar-actions .whatsapp-button {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
}

@media (max-width: 390px) {
  body .topbar {
    grid-template-columns: 76px minmax(106px, 1fr) minmax(112px, 1fr) !important;
    gap: 6px !important;
  }

  body .topbar .eyebrow {
    display: none !important;
  }

  body .topbar h1 {
    font-size: 0.9rem !important;
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    font-size: 0.58rem !important;
    padding-inline: 5px !important;
  }
}


/* v3.04.01 fixed layer stack: search above header, below tips */
@media (max-width: 680px) {
  body[data-active-view="store"] .sidebar {
    z-index: 80 !important;
  }

  body[data-active-view="store"] .topbar {
    z-index: 70 !important;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 260 !important;
  }

  body[data-active-view="store"] #storeView .store-search-field .product-search-suggestions {
    z-index: 275 !important;
  }

  body.team-nudge-open[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.team-nudge-open.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 240 !important;
  }

  body.team-nudge-open[data-active-view="store"] #storeView .store-search-field .product-search-suggestions {
    z-index: 245 !important;
  }

  body[data-active-view="store"] .team-nudge,
  body[data-active-view="store"] .team-nudge.is-open {
    z-index: 620 !important;
  }
}

body .cart-side-preview,
body .cart-drawer,
body .modal-backdrop {
  z-index: 760 !important;
}

/* v3.04.01 turbo touch/performance layer */
button,
[role="button"],
input[type="button"],
input[type="submit"],
.tab-button,
.nav-button,
.store-search-tool,
.team-nudge-button,
.cart-side-peek,
.cart-top-button,
.compact,
.primary-button,
.ghost-button,
.whatsapp-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:not(.link-button),
[role="button"],
.tab-button,
.nav-button,
.store-search-tool,
.team-nudge-button,
.cart-side-peek,
.cart-top-button {
  min-height: 44px;
}

#storeView .product-card .bulk-min-button,
#storeView .product-card .product-add-button,
#storeView .product-card .quantity-stepper-button,
#storeView .product-card .quantity-stepper-value,
.cart-item .quantity-stepper-button,
.cart-item .quantity-stepper-value,
.checkout-cart-item .quantity-stepper-button,
.checkout-cart-item .quantity-stepper-value {
  min-height: 48px !important;
}

#storeView .product-card .quantity-stepper {
  grid-template-columns: 46px minmax(54px, 1fr) 46px !important;
}

.store-search-tool,
.team-nudge-close,
.card-qty-picker-close,
.modal-header .icon-button {
  min-width: 44px;
  min-height: 44px;
}

#storeView .product-card img,
.suggestion-product-thumb img,
.team-nudge-product-thumb img,
.checkout-cart-image img {
  content-visibility: auto;
}

@media (max-width: 680px) {
  html {
    scroll-behavior: auto;
  }

  body,
  .product-card,
  .store-search-field,
  .topbar,
  .team-nudge-content,
  .cart-side-preview,
  .cart-drawer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #storeView .product-card,
  .team-nudge-content,
  .cart-side-preview,
  .cart-drawer,
  .store-search-field {
    box-shadow: 0 8px 20px rgba(31, 13, 39, 0.12) !important;
  }

  #storeView .product-card .product-image {
    contain: layout paint;
  }

  .product-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1200px;
  }

  .assist-action-dock {
    right: 10px;
    bottom: 76px;
    gap: 6px;
  }

  .assist-action-button {
    min-width: 46px;
    min-height: 46px;
    max-width: 46px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    color: transparent;
  }

  .assist-action-button::first-letter {
    color: var(--primary);
  }

  .assist-action-button.view-back::before,
  .assist-action-button.undo::before,
  .assist-action-button.top::before {
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 1000;
  }

  .assist-action-button.view-back::before {
    content: "↩";
  }

  .assist-action-button.undo::before {
    content: "↺";
    color: #1f0d27;
  }

  .assist-action-button.top::before {
    content: "↑";
  }

  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo,
  body[data-active-view="store"] .assist-action-button.top {
    display: none !important;
  }

  body[data-active-view="store"] .cart-side-peek {
    right: -24px !important;
    width: 58px;
  }

  body[data-active-view="store"] .cart-side-peek::before {
    inset: 0 !important;
  }

  body[data-active-view="store"] .cart-side-peek.is-subtotal-peek,
  body[data-active-view="store"] .cart-side-peek:hover {
    width: 58px !important;
    min-width: 0 !important;
    padding-right: 5px !important;
  }

  body[data-active-view="store"] .cart-side-peek .cart-side-subtotal {
    display: none !important;
    max-width: 0 !important;
    opacity: 0 !important;
  }
}

/* v3.04.01 narrow phone product controls: clean cards, no clipped buttons */
@media (max-width: 430px) {
  body[data-active-view="store"] #storeView .product-card .admin-cost-line,
  body[data-active-view="store"] #storeView .product-card .quick-price-cell--card {
    display: none !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-qty-control {
    padding-inline: 6px !important;
    gap: 6px !important;
  }

  body[data-active-view="store"] #storeView .product-card .quantity-stepper {
    grid-template-columns: 40px minmax(40px, 1fr) 40px !important;
    gap: 4px !important;
  }

  body[data-active-view="store"] #storeView .product-card .quantity-stepper-button,
  body[data-active-view="store"] #storeView .product-card .quantity-stepper-value {
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 0.94rem !important;
  }

  body[data-active-view="store"] #storeView .product-card .quantity-stepper-button::before,
  body[data-active-view="store"] #storeView .product-card .quantity-stepper-value::before {
    inset: -7px -4px !important;
  }

  body[data-active-view="store"] #storeView .product-card .bulk-min-button {
    min-height: 38px !important;
    font-size: 0.68rem !important;
  }

  body[data-active-view="store"] .cart-side-peek {
    right: -34px !important;
    width: 62px !important;
  }
}

/* Premium final palette: only applies inside the Premium experience. */
body.premium-store-active {
  --primary: #08256b;
  --primary-strong: #041947;
  --accent: #d7a84f;
  --accent-soft: #fff8e8;
  --soft: #eef7ff;
  --ink: #061a44;
  --muted: #526070;
  --line: #d7e5f2;
  --shadow: 0 18px 45px rgba(4, 25, 71, 0.13);
}

body.premium-store-active .topbar,
body.premium-store-active .sidebar .brand {
  border-color: rgba(215, 168, 79, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(4, 25, 71, 0.98), rgba(6, 52, 122, 0.96) 58%, rgba(5, 95, 70, 0.9)) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(4, 25, 71, 0.22) !important;
}

body.premium-store-active .topbar::before {
  background: linear-gradient(90deg, rgba(215, 168, 79, 0.72), rgba(255, 255, 255, 0.18), rgba(5, 150, 105, 0.58)) !important;
}

body.premium-store-active .topbar .eyebrow,
body.premium-store-active .topbar h1,
body.premium-store-active .sidebar .brand strong,
body.premium-store-active .sidebar .brand small {
  color: #fff !important;
}

body.premium-store-active .brand-mark,
body.premium-store-active .mobile-nav-toggle {
  border-color: rgba(215, 168, 79, 0.52) !important;
  background: linear-gradient(135deg, #fff8e8, #d7a84f) !important;
  color: #061a44 !important;
  box-shadow: 0 10px 24px rgba(215, 168, 79, 0.2) !important;
}

body.premium-store-active .topbar-actions #customerAccessButton {
  border-color: rgba(215, 168, 79, 0.38) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #061a44 !important;
}

body.premium-store-active .topbar-actions .whatsapp-button,
body.premium-store-active .whatsapp-button {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.24) !important;
}

body.premium-store-active .cart-side-peek {
  border-color: rgba(215, 168, 79, 0.5) !important;
  background:
    linear-gradient(145deg, #041947, #06347a 62%, #d7a84f) !important;
  box-shadow: 0 20px 48px rgba(4, 25, 71, 0.28) !important;
}

body.premium-store-active .cart-side-icon {
  color: #06347a !important;
}

body.premium-store-active .cart-side-preview-card,
body.premium-store-active .cart-drawer-panel,
body.premium-store-active .team-nudge-content,
body.premium-store-active .store-team-hub {
  border-color: rgba(215, 168, 79, 0.28) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.92)) !important;
  color: #061a44 !important;
  box-shadow: 0 22px 56px rgba(4, 25, 71, 0.2) !important;
}

body.premium-store-active .cart-side-preview-head small,
body.premium-store-active .team-nudge-head small,
body.premium-store-active .store-team-hub-head small,
body.premium-store-active .cart-side-preview-empty span {
  color: #b8862c !important;
}

body.premium-store-active .cart-side-preview-head h2,
body.premium-store-active .team-nudge-head h2,
body.premium-store-active .store-team-hub-head h2,
body.premium-store-active .cart-side-preview-empty strong,
body.premium-store-active .team-nudge-message strong,
body.premium-store-active .cart-side-preview-item strong {
  color: #061a44 !important;
}

body.premium-store-active .cart-side-preview-summary,
body.premium-store-active .cart-drawer-summary {
  background: linear-gradient(135deg, #041947, #06347a) !important;
  color: #fff !important;
}

body.premium-store-active .cart-side-preview-summary span,
body.premium-store-active .cart-side-preview-summary strong,
body.premium-store-active .cart-drawer-summary span,
body.premium-store-active .cart-drawer-summary strong {
  color: #fff !important;
}

body.premium-store-active .cart-side-preview-actions .primary-button,
body.premium-store-active .cart-drawer-checkout,
body.premium-store-active .team-nudge-actions .primary-button,
body.premium-store-active .product-card .product-add-button {
  border-color: rgba(215, 168, 79, 0.34) !important;
  background: linear-gradient(135deg, #06347a, #059669) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(4, 25, 71, 0.2) !important;
}

body.premium-store-active .cart-side-preview-actions .ghost-button,
body.premium-store-active .team-nudge-actions .ghost-button,
body.premium-store-active .cart-drawer .ghost-button {
  border-color: rgba(6, 52, 122, 0.18) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #061a44 !important;
}

body.premium-store-active .team-nudge-button {
  border-color: rgba(215, 168, 79, 0.42) !important;
  background: linear-gradient(135deg, #fff8e8, #ffffff) !important;
  color: #061a44 !important;
}

body.premium-store-active .team-nudge-button-copy strong,
body.premium-store-active .team-nudge-button-copy small,
body.premium-store-active .team-nudge-product strong,
body.premium-store-active .team-nudge-product span,
body.premium-store-active .team-nudge-product b {
  color: #061a44 !important;
}

/* Final mobile topbar action readability. */
@media (max-width: 760px) {
  body .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.75fr) minmax(168px, 1.25fr) !important;
    grid-template-rows: auto auto !important;
    max-height: none !important;
    row-gap: 9px !important;
  }

  body .topbar > div:first-child {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  body .topbar-actions #customerAccessButton {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  body .topbar-actions .whatsapp-button {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    min-height: 48px !important;
    max-height: none !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: clamp(0.78rem, 3.05vw, 0.92rem) !important;
    line-height: 1.12 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
  }

  body .topbar-actions #customerAccessButton {
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  body .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 0.78fr) minmax(168px, 1.22fr) !important;
    gap: 7px !important;
  }

  body .topbar-actions .whatsapp-button,
  body .topbar-actions #customerAccessButton {
    font-size: clamp(0.76rem, 3.1vw, 0.86rem) !important;
    padding-inline: 7px !important;
  }
}

/* Final store header action polish. */
body .topbar {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 12px 16px !important;
  min-height: 72px !important;
  max-height: none !important;
}

body .topbar > div:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

body .topbar-actions {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(136px, 176px) minmax(248px, 384px) !important;
  align-items: center !important;
  justify-self: end !important;
  gap: 10px !important;
  width: min(560px, 48vw) !important;
  min-width: 0 !important;
}

body .topbar-actions #customerAccessButton {
  grid-column: 1 !important;
  order: 1 !important;
}

body .topbar-actions .whatsapp-button {
  grid-column: 2 !important;
  order: 2 !important;
}

body .topbar-actions .whatsapp-button,
body .topbar-actions #customerAccessButton {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  max-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  font-size: 0.86rem !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.08) !important;
}

body .topbar-actions #customerAccessButton {
  border: 1px solid rgba(var(--primary-rgb), 0.14) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--ink) !important;
}

body .topbar-actions .whatsapp-button {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: linear-gradient(135deg, #18a957, #12b866) !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  body .topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  body .topbar-actions {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: stretch !important;
    width: 100% !important;
    grid-template-columns: minmax(132px, 0.78fr) minmax(210px, 1.22fr) !important;
  }
}

@media (max-width: 560px) {
  body .topbar-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .topbar-actions #customerAccessButton,
  body .topbar-actions .whatsapp-button {
    grid-column: 1 !important;
    min-height: 42px !important;
    max-height: none !important;
    white-space: normal !important;
  }

  body .topbar-actions #customerAccessButton {
    grid-row: 1 !important;
  }

  body .topbar-actions .whatsapp-button {
    grid-row: 2 !important;
  }
}

.store-suggestion-preview {
  position: fixed;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(6px) scale(0.96);
  transition: opacity 140ms ease, transform 140ms ease;
}

body[data-active-view="store"] .store-suggestion-preview {
  z-index: 2147483646;
}

body[data-active-view="store"] .store-suggestion-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.store-suggestion-preview-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(100, 32, 154, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(31, 13, 39, 0.2);
}

.store-suggestion-preview-image {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff, #fbf7ff);
}

.store-suggestion-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.store-suggestion-preview-card small,
.store-suggestion-preview-card strong,
.store-suggestion-preview-card span {
  display: block;
  line-height: 1.12;
}

.store-suggestion-preview-card small {
  color: var(--primary);
  font-size: 0.64rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.store-suggestion-preview-card strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 1000;
}

.store-suggestion-preview-card span {
  margin-top: 6px;
  color: #0f8f4b;
  font-size: 0.9rem;
  font-weight: 1000;
}

/* v3.04.02 responsive floating action dock */
@media (min-width: 681px) and (max-width: 1100px) {
  html {
    scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
  }

  .content,
  #storeView .catalog-area {
    padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
  }

  #storeView .product-card,
  #storeView .cart-panel,
  #storeView .signup-banner {
    scroll-margin-bottom: calc(144px + env(safe-area-inset-bottom)) !important;
  }

  .assist-action-dock {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    gap: 7px !important;
    max-width: min(210px, calc(100vw - 24px)) !important;
  }

  .assist-action-button {
    min-width: 74px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    font-size: 0.7rem !important;
    color: var(--primary) !important;
  }

  .assist-action-button.view-back,
  .assist-action-button.undo {
    min-width: 104px !important;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  .content,
  #storeView .catalog-area {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  #storeView .product-card,
  #storeView .cart-panel,
  #storeView .signup-banner {
    scroll-margin-bottom: calc(106px + env(safe-area-inset-bottom)) !important;
  }

  .assist-action-dock {
    display: grid !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    gap: 6px !important;
    max-width: 46px !important;
    justify-items: end !important;
    pointer-events: none !important;
    z-index: 650 !important;
  }

  .assist-action-button,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo,
  body[data-active-view="store"] .assist-action-button.top {
    display: inline-grid !important;
    place-items: center !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    color: transparent !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    pointer-events: auto !important;
  }

  .assist-action-button::first-letter {
    color: transparent !important;
  }

  .assist-action-button.view-back::before,
  .assist-action-button.undo::before,
  .assist-action-button.top::before {
    display: block !important;
    color: var(--primary) !important;
    font-size: 0.78rem !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
  }

  .assist-action-button.view-back::before {
    content: "↩" !important;
  }

  .assist-action-button.undo::before {
    content: "↺" !important;
    color: #1f0d27 !important;
  }

  .assist-action-button.top::before {
    content: "↑" !important;
  }

  .assist-action-button.top:not(.is-visible),
  .assist-action-button.is-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
    visibility: hidden !important;
  }
}

/* v3.05 final theme customization overrides. Keep this as the last CSS layer. */
#adminThemesView .theme-admin-grid {
  display: block !important;
}

#adminThemesView .theme-editor-panel {
  width: min(100%, 1120px) !important;
  margin-inline: auto !important;
}

#adminThemesView .theme-field-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#adminThemesView .theme-live-preview {
  margin-top: 4px !important;
  padding: clamp(12px, 2vw, 18px) !important;
  border-color: color-mix(in srgb, var(--primary) 16%, var(--line)) !important;
  border-radius: var(--theme-card-radius, 16px) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)), transparent 12rem),
    linear-gradient(135deg, color-mix(in srgb, var(--bg, #fbf8fc) 72%, #fff), var(--surface, #fff)) !important;
}

#adminThemesView .theme-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--theme-density-gap, 8px) !important;
}

#adminThemesView .theme-preview-product-card {
  min-height: 118px !important;
  padding: var(--theme-density-pad, 8px) !important;
  border-radius: calc(var(--theme-card-radius, 16px) * 0.68) !important;
  background: var(--surface, #fff) !important;
}

body[data-theme-font="rounded"] #storeView {
  font-family: "Nunito", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body[data-theme-font="editorial"] #storeView {
  font-family: Georgia, "Times New Roman", serif !important;
}

body[data-theme-font="compact"] #storeView {
  font-family: "Arial Narrow", "Inter Tight", "Inter", system-ui, sans-serif !important;
}

body[data-active-view="store"] #storeView .store-search-field {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--accent-soft)), var(--surface)) !important;
  border-color: color-mix(in srgb, var(--primary) 16%, var(--line)) !important;
}

body[data-theme-search="pill"][data-active-view="store"] #storeView .store-search-field {
  border-radius: 999px !important;
}

body[data-theme-search="bar"][data-active-view="store"] #storeView .store-search-field {
  border-width: 2px !important;
  border-radius: 8px !important;
}

body[data-theme-buttons="soft"][data-active-view="store"] #storeView .product-card .product-add-button {
  background: color-mix(in srgb, var(--accent) 18%, #fff) !important;
  color: var(--primary) !important;
  border-color: color-mix(in srgb, var(--accent) 38%, transparent) !important;
}

body[data-theme-buttons="outline"][data-active-view="store"] #storeView .product-card .product-add-button {
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid color-mix(in srgb, var(--primary) 72%, var(--accent)) !important;
}

body[data-active-view="store"] #storeView .product-card,
body[data-active-view="store"] #storeView .product-card.product-card--no-bulk,
body[data-active-view="store"] #storeView .product-card.product-card--has-bulk {
  border-color: rgba(var(--card-glow-rgb), var(--card-glow-border-alpha)) !important;
  border-radius: var(--theme-card-radius, 16px) !important;
}

body[data-active-view="store"] #storeView .product-card h3,
body[data-active-view="store"] #storeView .product-card .price-line strong {
  color: var(--ink) !important;
}

body[data-active-view="store"] #storeView .product-card .price-line small,
body[data-active-view="store"] #storeView .product-card .tag,
body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy b,
body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip small {
  color: var(--primary) !important;
}

body[data-theme-cards="imageFirst"][data-active-view="store"] #storeView .product-card .product-image {
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)), transparent 62%),
    color-mix(in srgb, var(--accent-soft) 44%, #fff) !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
  border-radius: 10px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 11%, #fff), color-mix(in srgb, var(--accent) 12%, #fff)) !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-grid {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(236px, 31%) !important;
  grid-template-columns: none !important;
  align-items: stretch !important;
  gap: var(--theme-density-gap, 14px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  padding: 6px 4px 22px !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:hover,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(even),
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(odd) {
  min-height: 468px !important;
  transform: none !important;
}

body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card .product-image,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(3n + 1) .product-image,
body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card:nth-child(5n + 2) .product-image {
  height: clamp(132px, 17vw, 184px) !important;
  min-height: clamp(132px, 17vw, 184px) !important;
  max-height: clamp(132px, 17vw, 184px) !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] {
  background:
    radial-gradient(circle at 12% 0, rgba(var(--accent-rgb), 0.2), transparent 26rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, #fff), var(--bg)) !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] #storeView .topbar,
body[data-theme-presentation="premium"][data-active-view="store"] #storeView .content-section:first-of-type {
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.24), transparent 18rem),
    linear-gradient(135deg, var(--nav-start), var(--nav-end)) !important;
  color: #fff !important;
}

body[data-theme-presentation="premium"][data-active-view="store"] #storeView .product-card {
  background:
    radial-gradient(circle at 20% 0, rgba(var(--accent-rgb), 0.12), transparent 13rem),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--bg) 32%, #fff)) !important;
}

body.theme-previewing-store::before {
  content: "Prévia sem salvar";
  position: fixed;
  z-index: 700;
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 1000;
  box-shadow: 0 12px 28px rgba(var(--shadow-rgb), 0.2);
  pointer-events: none;
}

@media (max-width: 680px) {
  #adminThemesView .theme-field-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-grid {
    grid-auto-columns: minmax(176px, 58vw) !important;
    gap: 10px !important;
  }

  body[data-theme-presentation="horizontal"][data-active-view="store"] #storeView .product-card {
    min-height: 492px !important;
  }

  body.theme-previewing-store::before {
    bottom: calc(126px + env(safe-area-inset-bottom));
    left: 10px;
    font-size: 0.64rem;
  }
}

/* v3.07 themes split editor: compact controls left, full preview right. */
#adminThemesView .theme-admin-grid {
  display: grid !important;
  grid-template-columns: minmax(310px, 430px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: clamp(14px, 2vw, 22px) !important;
  width: 100% !important;
  max-width: none !important;
}

#adminThemesView .theme-editor-panel,
#adminThemesView .theme-preview-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

#adminThemesView .theme-editor-panel {
  align-self: start !important;
}

#adminThemesView .theme-editor-panel h2 {
  margin-bottom: 8px !important;
  font-size: 1rem !important;
}

#adminThemesView .theme-editor-panel form {
  gap: 8px !important;
}

#adminThemesView .theme-editor-panel label {
  gap: 4px !important;
}

#adminThemesView .theme-editor-panel label > span,
#adminThemesView .theme-logo-gallery-field > span {
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
}

#adminThemesView .theme-editor-panel input,
#adminThemesView .theme-editor-panel select,
#adminThemesView .theme-editor-panel textarea {
  min-height: 42px !important;
  padding-block: 8px !important;
}

#adminThemesView .theme-editor-panel input[type="color"] {
  min-height: 38px !important;
  padding: 4px !important;
}

#adminThemesView .theme-editor-panel input[type="range"] {
  min-height: 30px !important;
  padding-block: 4px !important;
}

#adminThemesView .theme-editor-panel textarea {
  min-height: 64px !important;
  resize: vertical !important;
}

#adminThemesView .theme-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#adminThemesView .theme-logo-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-height: none !important;
  overflow: visible !important;
}

#adminThemesView .theme-logo-option {
  min-height: 72px !important;
  padding: 6px !important;
}

#adminThemesView .theme-preview-panel {
  position: sticky !important;
  top: 14px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: calc(100vh - 28px) !important;
  max-height: calc(100vh - 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

#adminThemesView .theme-preview-panel-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

#adminThemesView .theme-preview-panel-head strong {
  min-width: 0;
  color: var(--primary);
  font-size: 0.96rem;
  font-weight: 1000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminThemesView .theme-preview-panel .theme-live-preview {
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature {
  align-content: stretch !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature-shell {
  min-height: 0 !important;
  height: 100% !important;
  grid-template-rows: auto minmax(112px, auto) auto auto minmax(0, 1fr) auto auto !important;
  overflow: hidden !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature-products {
  align-content: stretch !important;
  min-height: 0 !important;
}

#adminThemesView .theme-preview-panel .theme-store-mini-card {
  min-height: 0 !important;
}

@media (max-width: 1180px) {
  #adminThemesView .theme-admin-grid {
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr) !important;
  }

  #adminThemesView .theme-preview-panel .theme-store-miniature-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-horizontal .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-express .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-wholesale-compact .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-flash-sale .theme-store-miniature-products {
    grid-auto-flow: row !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #adminThemesView .theme-admin-grid {
    grid-template-columns: 1fr !important;
  }

  #adminThemesView .theme-preview-panel {
    position: static !important;
    min-height: auto !important;
    max-height: none !important;
  }

  #adminThemesView .theme-preview-panel .theme-live-preview,
  #adminThemesView .theme-preview-panel .theme-store-miniature-shell {
    height: auto !important;
    overflow: visible !important;
  }
}

/* v3.08 themes relaxed layout: long natural preview and open selector column. */
#adminThemesView .theme-admin-grid {
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr) !important;
  align-items: start !important;
}

#adminThemesView .theme-editor-panel,
#adminThemesView .theme-preview-panel {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#adminThemesView .theme-editor-panel h2 {
  margin-bottom: 12px !important;
  font-size: 1.08rem !important;
}

#adminThemesView .theme-editor-panel form {
  gap: 12px !important;
}

#adminThemesView .theme-editor-panel label {
  gap: 6px !important;
}

#adminThemesView .theme-editor-panel label > span,
#adminThemesView .theme-logo-gallery-field > span {
  font-size: 0.78rem !important;
  line-height: 1.18 !important;
}

#adminThemesView .theme-editor-panel input,
#adminThemesView .theme-editor-panel select,
#adminThemesView .theme-editor-panel textarea {
  min-height: 48px !important;
  padding-block: 10px !important;
}

#adminThemesView .theme-editor-panel input[type="color"] {
  min-height: 44px !important;
}

#adminThemesView .theme-editor-panel input[type="range"] {
  min-height: 38px !important;
}

#adminThemesView .theme-editor-panel textarea {
  min-height: 92px !important;
}

#adminThemesView .theme-field-grid {
  gap: 12px !important;
}

#adminThemesView .theme-logo-option {
  min-height: 88px !important;
  padding: 8px !important;
}

#adminThemesView .theme-preview-panel {
  position: static !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel .theme-live-preview {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature {
  align-content: start !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature-shell {
  height: auto !important;
  min-height: 0 !important;
  grid-template-rows: none !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature-products {
  min-height: 0 !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel .theme-store-mini-card {
  min-height: 176px !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature--layout-horizontal .theme-store-miniature-products,
#adminThemesView .theme-preview-panel .theme-store-miniature--layout-express .theme-store-miniature-products,
#adminThemesView .theme-preview-panel .theme-store-miniature--layout-wholesale-compact .theme-store-miniature-products,
#adminThemesView .theme-preview-panel .theme-store-miniature--layout-flash-sale .theme-store-miniature-products {
  grid-auto-flow: row !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: visible !important;
}

@media (max-width: 1180px) {
  #adminThemesView .theme-admin-grid {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr) !important;
  }

  #adminThemesView .theme-preview-panel .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-horizontal .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-express .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-wholesale-compact .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-flash-sale .theme-store-miniature-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #adminThemesView .theme-admin-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v3.09 themes true two-column page: title/editors left, preview right from top to bottom. */
#adminThemesView.view.active {
  display: grid !important;
  grid-template-columns: minmax(360px, 38%) minmax(0, 1fr) !important;
  grid-template-areas:
    "theme-title theme-preview"
    "theme-editor theme-preview" !important;
  align-items: start !important;
  gap: clamp(18px, 2.4vw, 32px) !important;
  width: 100% !important;
  max-width: none !important;
}

#adminThemesView > .panel-title {
  grid-area: theme-title !important;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#adminThemesView > .panel-title h2 {
  margin: 0 0 6px !important;
  font-size: clamp(1.35rem, 2.4vw, 2rem) !important;
}

#adminThemesView > .panel-title p {
  max-width: 46ch !important;
  margin: 0 !important;
  font-size: 0.94rem !important;
  line-height: 1.4 !important;
}

#adminThemesView > .theme-admin-grid {
  display: contents !important;
}

#adminThemesView .theme-editor-panel {
  grid-area: theme-editor !important;
}

#adminThemesView .theme-preview-panel {
  grid-area: theme-preview !important;
  align-self: stretch !important;
}

#adminThemesView .theme-editor-panel,
#adminThemesView .theme-preview-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#adminThemesView .theme-editor-panel > h2 {
  display: none !important;
}

#adminThemesView .theme-editor-panel form {
  gap: 16px !important;
}

#adminThemesView .theme-editor-panel label {
  gap: 7px !important;
}

#adminThemesView .theme-editor-panel input,
#adminThemesView .theme-editor-panel select,
#adminThemesView .theme-editor-panel textarea {
  min-height: 52px !important;
  padding: 12px 14px !important;
}

#adminThemesView .theme-editor-panel input[type="color"] {
  min-height: 48px !important;
  padding: 5px !important;
}

#adminThemesView .theme-editor-panel input[type="range"] {
  min-height: 42px !important;
  padding-inline: 0 !important;
}

#adminThemesView .theme-editor-panel textarea {
  min-height: 110px !important;
}

#adminThemesView .theme-field-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

#adminThemesView .theme-logo-gallery {
  grid-template-columns: 1fr !important;
}

#adminThemesView .theme-logo-option {
  min-height: 96px !important;
}

#adminThemesView .theme-preview-panel {
  display: block !important;
  position: static !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel-head {
  margin-bottom: 12px !important;
}

#adminThemesView .theme-preview-panel-head strong {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem) !important;
}

#adminThemesView .theme-preview-panel .theme-live-preview,
#adminThemesView .theme-preview-panel .theme-store-miniature,
#adminThemesView .theme-preview-panel .theme-store-miniature-shell {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel .theme-live-preview,
#adminThemesView .theme-store-miniature {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature-shell {
  padding: clamp(16px, 2vw, 24px) !important;
  grid-template-rows: none !important;
}

#adminThemesView .theme-preview-panel .theme-store-miniature-products,
#adminThemesView .theme-preview-panel .theme-store-miniature--layout-horizontal .theme-store-miniature-products,
#adminThemesView .theme-preview-panel .theme-store-miniature--layout-express .theme-store-miniature-products,
#adminThemesView .theme-preview-panel .theme-store-miniature--layout-wholesale-compact .theme-store-miniature-products,
#adminThemesView .theme-preview-panel .theme-store-miniature--layout-flash-sale .theme-store-miniature-products {
  grid-auto-flow: row !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: visible !important;
}

#adminThemesView .theme-preview-panel .theme-store-mini-card {
  min-height: 190px !important;
}

@media (max-width: 1180px) {
  #adminThemesView.view.active {
    grid-template-columns: minmax(330px, 40%) minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  #adminThemesView .theme-preview-panel .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-horizontal .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-express .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-wholesale-compact .theme-store-miniature-products,
  #adminThemesView .theme-preview-panel .theme-store-miniature--layout-flash-sale .theme-store-miniature-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 860px) {
  #adminThemesView.view.active {
    display: block !important;
  }

  #adminThemesView > .panel-title {
    margin-bottom: 18px !important;
  }

  #adminThemesView .theme-preview-panel {
    margin-top: 22px !important;
  }
}

/* v3.06 theme pro miniature and controlled visual presets. Keep after v3.05. */
#adminThemesView .theme-store-miniature {
  display: grid !important;
  gap: 10px !important;
  padding: clamp(10px, 1.8vw, 16px) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(var(--accent-rgb), 0.16), transparent 13rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, #fff), var(--surface)) !important;
}

#adminThemesView input.is-invalid {
  border-color: #d71920 !important;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12) !important;
}

.assist-action-button.theme-preview-exit {
  border-color: rgba(var(--accent-rgb), 0.36);
  background: linear-gradient(135deg, var(--black), var(--primary-strong));
  color: #fff;
  box-shadow: 0 16px 34px rgba(var(--shadow-rgb), 0.22);
}

body:not(.theme-previewing-store) .assist-action-button.theme-preview-exit,
.assist-action-button.theme-preview-exit.is-hidden {
  display: none;
}

.assist-action-button.hidden,
.assist-action-button.is-hidden {
  display: none !important;
}

body[data-active-view="store"] #storeView .product-card .bulk-min-button {
  min-height: 40px !important;
}

.modal-header .icon-button,
.cart-side-preview .icon-button,
.admin-modal-card .icon-button {
  min-width: 40px !important;
  min-height: 40px !important;
}

body.theme-previewing-store::before {
  content: none !important;
  display: none !important;
}

.hero-strip.hero-strip--theme-image {
  background:
    linear-gradient(90deg, rgba(16, 11, 19, 0.94), rgba(var(--primary-rgb), 0.72)),
    var(--theme-hero-image) center / cover no-repeat,
    linear-gradient(90deg, rgba(16, 11, 19, 0.98), rgba(var(--primary-rgb), 0.9)),
    var(--black) !important;
}

.hero-strip.hero-strip--theme-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(var(--accent-rgb), 0.24), transparent 17rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-strip.hero-strip--theme-image > * {
  position: relative;
  z-index: 1;
}

.theme-store-miniature-hero.has-theme-image {
  background:
    linear-gradient(90deg, rgba(16, 11, 19, 0.88), rgba(var(--primary-rgb), 0.52)),
    var(--theme-hero-image) center / cover no-repeat,
    linear-gradient(135deg, var(--primary), var(--primary-strong)) !important;
}

.theme-store-miniature-browser,
.theme-store-miniature-top,
.theme-store-miniature-hero,
.theme-store-miniature-catalog,
.theme-store-miniature-signup,
.theme-store-miniature-footer,
.theme-store-miniature-meta {
  min-width: 0;
}

.theme-store-miniature-browser {
  display: grid;
  grid-template-columns: repeat(3, 8px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.theme-store-miniature-browser span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.theme-store-miniature-browser strong,
.theme-store-miniature-browser em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-store-miniature-shell {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: clamp(10px, 1.7vw, 16px);
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: clamp(14px, var(--theme-card-radius), 26px);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.66);
}

.theme-store-miniature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.theme-store-miniature-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.theme-store-miniature-brand img,
.theme-store-miniature-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.theme-store-miniature-brand img {
  width: 42px;
  height: 42px;
}

.theme-store-miniature-brand div {
  display: grid;
  min-width: 0;
}

.theme-store-miniature-brand small,
.theme-store-miniature-brand strong,
.theme-store-miniature-hero span,
.theme-store-miniature-hero h3,
.theme-store-miniature-hero p,
.theme-store-miniature-section strong,
.theme-store-miniature-section small,
.theme-store-miniature-signup small,
.theme-store-miniature-signup strong,
.theme-store-miniature-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-store-miniature-brand small,
.theme-store-miniature-hero span,
.theme-store-miniature-section small,
.theme-store-miniature-signup small,
.theme-store-miniature-footer span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-store-miniature-brand strong,
.theme-store-miniature-section strong,
.theme-store-miniature-signup strong,
.theme-store-miniature-footer strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 1000;
  white-space: nowrap;
}

.theme-store-miniature-top button,
.theme-store-miniature-signup button,
.theme-store-mini-card button {
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 1000;
}

.theme-store-miniature-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, 18%);
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: clamp(12px, 2vw, 22px);
  border-radius: clamp(12px, var(--theme-card-radius), 24px);
  background:
    radial-gradient(circle at 82% 20%, rgba(var(--accent-rgb), 0.18), transparent 9rem),
    linear-gradient(135deg, var(--nav-start), var(--primary));
  color: #fff;
}

.theme-store-miniature-hero span,
.theme-store-miniature-hero h3,
.theme-store-miniature-hero p {
  color: #fff;
}

.theme-store-miniature-hero h3 {
  display: -webkit-box;
  margin: 3px 0;
  font-size: clamp(0.9rem, 2.1vw, 1.35rem);
  line-height: 1.05;
  font-weight: 1000;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.theme-store-miniature-hero p {
  display: -webkit-box;
  margin: 0;
  opacity: 0.86;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.theme-store-miniature-logo {
  display: grid;
  place-items: center;
  height: 82px;
  border-radius: 18px;
  background: rgba(255,255,255,0.14);
}

.theme-store-miniature-catalog {
  display: grid;
  gap: 8px;
}

.theme-store-miniature-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, var(--line));
  border-radius: 16px;
  background: var(--surface);
}

.theme-store-miniature-search span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
}

.theme-store-miniature-search strong,
.theme-store-miniature-search small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-store-miniature-search strong {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 1000;
}

.theme-store-miniature-search small {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 850;
}

.theme-store-miniature-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.theme-store-miniature-tabs span {
  flex: 0 0 auto;
  max-width: 96px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 1000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-store-miniature-tabs .is-active {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  background: color-mix(in srgb, var(--primary) 11%, #fff);
  color: var(--primary);
}

.theme-store-miniature-section,
.theme-store-miniature-signup,
.theme-store-miniature-footer,
.theme-store-miniature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-store-miniature-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--theme-density-gap, 10px);
  min-width: 0;
}

.theme-store-mini-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
  min-height: 176px;
  padding: var(--theme-density-pad, 10px);
  border: 1px solid rgba(var(--card-glow-rgb), var(--card-glow-border-alpha));
  border-radius: clamp(8px, var(--theme-card-radius), 24px);
  background: var(--surface);
  box-shadow:
    inset 0 0 14px rgba(var(--card-glow-rgb), var(--card-glow-inner-alpha)),
    0 10px 24px rgba(var(--card-glow-rgb), var(--card-glow-wide-alpha));
  overflow: hidden;
}

.theme-store-mini-image {
  display: grid;
  place-items: center;
  height: clamp(56px, 8vw, 90px);
  min-width: 0;
  border-radius: calc(var(--theme-card-radius, 16px) * 0.62);
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--card-glow-rgb), var(--card-glow-smoke-alpha)), transparent 64%),
    #fff;
}

.theme-store-mini-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.theme-store-mini-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.theme-store-mini-copy span,
.theme-store-mini-copy small {
  color: var(--primary);
  font-size: 0.5rem;
  font-weight: 1000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-store-mini-copy strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 1000;
  line-height: 1.08;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.theme-store-mini-copy b {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1;
}

.theme-store-miniature-signup {
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: clamp(10px, var(--theme-card-radius), 22px);
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
}

.theme-store-miniature-footer,
.theme-store-miniature-meta {
  padding-top: 4px;
}

.theme-store-miniature-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.theme-store-miniature-meta span {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  color: var(--primary);
  font-size: 0.56rem;
  font-weight: 1000;
}

.theme-store-miniature--layout-horizontal .theme-store-miniature-products,
.theme-store-miniature--layout-express .theme-store-miniature-products,
.theme-store-miniature--layout-wholesale-compact .theme-store-miniature-products,
.theme-store-miniature--layout-flash-sale .theme-store-miniature-products {
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 30%);
  grid-template-columns: none;
  overflow: hidden;
}

.theme-store-miniature--layout-premium .theme-store-miniature-hero,
.theme-store-miniature--layout-dark-luxury .theme-store-miniature-hero,
.theme-store-miniature--layout-showroom .theme-store-miniature-hero {
  min-height: 136px;
  background:
    radial-gradient(circle at 78% 18%, rgba(var(--accent-rgb), 0.28), transparent 9rem),
    linear-gradient(135deg, var(--black), var(--nav-start));
}

.theme-store-miniature--layout-visual-catalog .theme-store-mini-image,
.theme-store-miniature--layout-image-first .theme-store-mini-image,
.theme-store-miniature--cards-imageFirst .theme-store-mini-image,
.theme-store-miniature--cards-catalog .theme-store-mini-image,
.theme-store-miniature--cards-large .theme-store-mini-image {
  height: clamp(76px, 10vw, 112px);
}

.theme-store-miniature--search-pill .theme-store-miniature-search,
.theme-store-miniature--search-floating .theme-store-miniature-search,
.theme-store-miniature--search-app .theme-store-miniature-search {
  border-radius: 999px;
}

.theme-store-miniature--search-bar .theme-store-miniature-search,
.theme-store-miniature--search-market-ticket .theme-store-miniature-search,
.theme-store-miniature--search-square .theme-store-miniature-search {
  border-radius: 8px;
  border-width: 2px;
}

.theme-store-miniature--buttons-outline .theme-store-mini-card button,
.theme-store-miniature--buttons-minimal .theme-store-mini-card button,
.theme-store-miniature--buttons-premium .theme-store-mini-card button {
  background: transparent;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 56%, var(--accent));
}

.theme-store-miniature--buttons-soft .theme-store-mini-card button,
.theme-store-miniature--buttons-glass .theme-store-mini-card button,
.theme-store-miniature--buttons-calm .theme-store-mini-card button {
  background: color-mix(in srgb, var(--accent) 18%, #fff);
  color: var(--primary);
}

.theme-store-miniature--cards-compact .theme-store-mini-card,
.theme-store-miniature--cards-dense .theme-store-mini-card,
.theme-store-miniature--cards-wholesale .theme-store-mini-card {
  min-height: 154px;
  padding: max(7px, calc(var(--theme-density-pad, 10px) - 3px));
}

.theme-store-miniature--cards-glass .theme-store-mini-card,
.theme-store-miniature--cards-premium .theme-store-mini-card,
.theme-store-miniature--cards-border-glow .theme-store-mini-card {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-color: rgba(var(--card-glow-rgb), calc(var(--card-glow-border-alpha) + 0.08));
}

body[data-theme-layout="horizontal"][data-active-view="store"] #storeView .product-grid,
body[data-theme-layout="wholesale-compact"][data-active-view="store"] #storeView .product-grid,
body[data-theme-layout="express"][data-active-view="store"] #storeView .product-grid,
body[data-theme-layout="flash-sale"][data-active-view="store"] #storeView .product-grid {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(236px, 31%) !important;
  grid-template-columns: none !important;
  overflow-x: auto !important;
}

body[data-theme-layout="premium"][data-active-view="store"] #storeView .content-section:first-of-type,
body[data-theme-layout="dark-luxury"][data-active-view="store"] #storeView .content-section:first-of-type,
body[data-theme-layout="showroom"][data-active-view="store"] #storeView .content-section:first-of-type {
  background: linear-gradient(135deg, var(--black), var(--nav-start)) !important;
}

body[data-theme-layout="wholesale-compact"][data-active-view="store"] #storeView .product-card,
body[data-theme-layout="cards-dense"][data-active-view="store"] #storeView .product-card,
body[data-theme-layout="price-first"][data-active-view="store"] #storeView .product-card {
  padding: max(10px, calc(var(--theme-density-pad) - 4px)) !important;
}

body[data-theme-animation="none"] #storeView *,
.theme-store-miniature--animation-none * {
  animation: none !important;
  transition-duration: 0ms !important;
}

@keyframes theme-led-breathe {
  0%, 100% { box-shadow: inset 0 0 10px rgba(var(--card-glow-rgb), var(--card-glow-inner-alpha)), 0 8px 18px rgba(var(--card-glow-rgb), var(--card-glow-wide-alpha)); }
  50% { box-shadow: inset 0 0 22px rgba(var(--card-glow-rgb), calc(var(--card-glow-inner-alpha) + 0.08)), 0 16px 34px rgba(var(--card-glow-rgb), calc(var(--card-glow-wide-alpha) + 0.08)); }
}

@keyframes theme-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes theme-soft-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.045); }
}

body[data-theme-animation="led-breathe"] #storeView .product-card,
body[data-theme-animation="inner-glow"] #storeView .product-card,
body[data-theme-animation="shadow-breathe"] #storeView .product-card,
.theme-store-miniature--animation-led-breathe .theme-store-mini-card,
.theme-store-miniature--animation-inner-glow .theme-store-mini-card,
.theme-store-miniature--animation-shadow-breathe .theme-store-mini-card {
  animation: theme-led-breathe 3.4s ease-in-out infinite;
}

body[data-theme-animation="cards-float"] #storeView .product-card,
body[data-theme-animation="cards-wave"] #storeView .product-card,
body[data-theme-animation="card-zoom"] #storeView .product-card,
.theme-store-miniature--animation-cards-float .theme-store-mini-card,
.theme-store-miniature--animation-cards-wave .theme-store-mini-card,
.theme-store-miniature--animation-card-zoom .theme-store-mini-card {
  animation: theme-card-float 4s ease-in-out infinite;
  animation-delay: calc(var(--mini-card-index, 0) * 90ms);
}

body[data-theme-animation="soft"] #storeView .product-card,
body[data-theme-animation="living-showcase"] #storeView .product-card,
body[data-theme-animation="premium-elegant"] #storeView .product-card,
body[data-theme-animation="offer-attention"] #storeView .product-card,
body[data-theme-animation="promo-vibrant"] #storeView .product-card,
.theme-store-miniature--animation-soft .theme-store-mini-card,
.theme-store-miniature--animation-living-showcase .theme-store-mini-card,
.theme-store-miniature--animation-premium-elegant .theme-store-mini-card,
.theme-store-miniature--animation-offer-attention .theme-store-mini-card,
.theme-store-miniature--animation-promo-vibrant .theme-store-mini-card {
  animation: theme-soft-pulse 3.8s ease-in-out infinite;
}

body[data-theme-animation="search-pulse"] #storeView .store-search-field,
.theme-store-miniature--animation-search-pulse .theme-store-miniature-search {
  animation: theme-soft-pulse 2.4s ease-in-out infinite;
}

body[data-theme-animation="button-shine"] #storeView .product-add-button,
body[data-theme-animation="button-live"] #storeView .product-add-button,
body[data-theme-animation="buy-pulse"] #storeView .product-add-button,
.theme-store-miniature--animation-button-shine .theme-store-mini-card button,
.theme-store-miniature--animation-button-live .theme-store-mini-card button,
.theme-store-miniature--animation-buy-pulse .theme-store-mini-card button {
  animation: theme-soft-pulse 2s ease-in-out infinite;
}

body[data-theme-animation="hero-light"] #storeView .content-section:first-of-type,
body[data-theme-animation="hero-pan"] #storeView .content-section:first-of-type,
body[data-theme-animation="premium-motion"] #storeView .content-section:first-of-type,
.theme-store-miniature--animation-hero-light .theme-store-miniature-hero,
.theme-store-miniature--animation-hero-pan .theme-store-miniature-hero,
.theme-store-miniature--animation-premium-motion .theme-store-miniature-hero {
  animation: theme-soft-pulse 5.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme-animation] #storeView *,
  .theme-store-miniature * {
    animation: none !important;
    transition-duration: 0ms !important;
  }
}

@media (max-width: 680px) {
  .theme-store-miniature-shell {
    padding: 9px;
  }

  .theme-store-miniature-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 118px;
  }

  .theme-store-miniature-logo {
    display: none;
  }

  .theme-store-miniature-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-store-miniature--layout-horizontal .theme-store-miniature-products,
  .theme-store-miniature--layout-express .theme-store-miniature-products,
  .theme-store-miniature--layout-wholesale-compact .theme-store-miniature-products,
  .theme-store-miniature--layout-flash-sale .theme-store-miniature-products {
    grid-auto-columns: minmax(116px, 48%);
  }

  .theme-store-mini-card {
    min-height: 154px;
  }

  .theme-store-miniature-top button,
  .theme-store-miniature-signup button {
    display: none;
  }
}

/* v3.11 professional search bar variants: store only + live preview */
body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
  overflow: visible;
}

body[data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature .theme-store-miniature-search {
  isolation: isolate;
  min-height: 62px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, #fff), color-mix(in srgb, var(--accent-soft) 28%, var(--surface))),
    var(--surface);
  box-shadow:
    0 18px 36px rgba(var(--primary-rgb), 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-active-view="store"] #storeView .store-search-field::before,
.theme-store-miniature .theme-store-miniature-search::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 62%);
  pointer-events: none;
}

body[data-active-view="store"] #storeView .store-search-field input#storeSearch {
  letter-spacing: 0;
}

body[data-active-view="store"] #storeView .store-search-icon,
.theme-store-miniature .theme-store-miniature-search span {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #fff));
  color: var(--black);
  box-shadow:
    0 10px 20px rgba(var(--accent-rgb), 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

body[data-active-view="store"] #storeView .store-search-field:focus-within {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line)) !important;
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.12),
    0 24px 52px rgba(var(--primary-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body[data-theme-search="current"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-current .theme-store-miniature-search {
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent-soft) 38%, #fff)) !important;
}

body[data-theme-search="pill"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-pill .theme-store-miniature-search {
  border-radius: 999px !important;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line)) !important;
  background:
    linear-gradient(135deg, #fff, color-mix(in srgb, var(--surface) 74%, var(--accent-soft))) !important;
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.12), inset 0 0 0 1px #fff !important;
}

body[data-theme-search="bar"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-bar .theme-store-miniature-search {
  border-width: 0 0 4px !important;
  border-radius: 14px !important;
  border-bottom-color: var(--accent) !important;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 86%, var(--accent-soft))) !important;
}

body[data-theme-search="premium"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-premium .theme-store-miniature-search {
  border-radius: 24px !important;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line)) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent-soft) 34%, #fff)),
    radial-gradient(circle at 18% 8%, rgba(var(--accent-rgb), 0.2), transparent 32%) !important;
  box-shadow: 0 26px 56px rgba(var(--primary-rgb), 0.16), inset 0 -2px 0 rgba(var(--accent-rgb), 0.32) !important;
}

body[data-theme-search="compact-fixed"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-compact-fixed .theme-store-miniature-search {
  min-height: 48px !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.1) !important;
}

body[data-theme-search="glass"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-glass .theme-store-miniature-search {
  border-radius: 24px !important;
  border-color: rgba(255, 255, 255, 0.82) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--primary-rgb), 0.12)) !important;
  box-shadow: 0 28px 58px rgba(var(--primary-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(22px) saturate(1.25);
}

body[data-theme-search="outlined"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-outlined .theme-store-miniature-search {
  border-width: 2px !important;
  border-color: color-mix(in srgb, var(--primary) 54%, var(--line)) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent-soft) 36%, transparent), 0 14px 28px rgba(var(--primary-rgb), 0.08) !important;
}

body[data-theme-search="filled"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-filled .theme-store-miniature-search {
  border-color: transparent !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 74%, #fff), color-mix(in srgb, var(--surface) 76%, var(--accent-soft))) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.16), 0 14px 30px rgba(var(--primary-rgb), 0.08) !important;
}

body[data-theme-search="shadow"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-shadow .theme-store-miniature-search {
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow:
    0 30px 70px rgba(var(--primary-rgb), 0.24),
    0 8px 18px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

body[data-theme-search="accent-left"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-accent-left .theme-store-miniature-search {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)) !important;
  border-left: 10px solid var(--accent) !important;
  border-radius: 18px !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-soft) 48%, #fff), #fff 58%) !important;
}

body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-dark .theme-store-miniature-search {
  border-color: color-mix(in srgb, var(--accent) 44%, #000) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--black) 82%, var(--primary)), var(--black)) !important;
  color: #fff !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-field input#storeSearch,
body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-field input#storeSearch::placeholder,
body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-prompt,
.theme-store-miniature--search-dark .theme-store-miniature-search strong,
.theme-store-miniature--search-dark .theme-store-miniature-search small {
  color: #fff !important;
}

body[data-theme-search="minimal"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-minimal .theme-store-miniature-search {
  border-width: 0 0 2px !important;
  border-radius: 0 !important;
  border-bottom-color: color-mix(in srgb, var(--primary) 32%, var(--line)) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-theme-search="large"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-large .theme-store-miniature-search {
  min-height: 78px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.2), transparent 42%),
    linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent-soft) 36%, #fff)) !important;
  box-shadow: 0 30px 64px rgba(var(--primary-rgb), 0.15) !important;
}

body[data-theme-search="small"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-small .theme-store-miniature-search {
  min-height: 44px !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.08) !important;
}

body[data-theme-search="market-ticket"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-market-ticket .theme-store-miniature-search {
  border: 2px dashed color-mix(in srgb, var(--accent) 68%, var(--primary)) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.13) 0 10px, transparent 10px 20px),
    #fff !important;
  box-shadow: 0 18px 34px rgba(var(--primary-rgb), 0.1) !important;
}

body[data-theme-search="floating"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-floating .theme-store-miniature-search {
  border-color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow:
    0 34px 70px rgba(var(--primary-rgb), 0.2),
    0 0 0 8px rgba(var(--accent-rgb), 0.07) !important;
  transform: translateY(-2px);
}

body[data-theme-search="square"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-square .theme-store-miniature-search {
  border-radius: 4px !important;
  border-width: 2px !important;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--surface) 86%, var(--accent-soft))) !important;
}

body[data-theme-search="soft-border"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-soft-border .theme-store-miniature-search {
  border: 2px solid color-mix(in srgb, var(--accent-soft) 88%, var(--accent)) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.07), inset 0 0 0 4px rgba(var(--accent-rgb), 0.06) !important;
}

body[data-theme-search="voice-first"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-voice-first .theme-store-miniature-search {
  border-radius: 24px !important;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent-soft) 42%, #fff)) !important;
  box-shadow: 0 20px 42px rgba(var(--primary-rgb), 0.12) !important;
}

body[data-theme-search="voice-first"][data-active-view="store"] #storeView .store-search-tool--voice {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 64%, #fff)) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12), 0 14px 26px rgba(var(--accent-rgb), 0.25) !important;
  transform: scale(1.12);
}

body[data-theme-search="camera-first"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-camera-first .theme-store-miniature-search {
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, #fff, color-mix(in srgb, var(--primary) 5%, var(--surface))),
    radial-gradient(circle at 92% 22%, rgba(var(--accent-rgb), 0.18), transparent 32%) !important;
}

body[data-theme-search="camera-first"][data-active-view="store"] #storeView .store-search-tool--camera {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--primary) 18%, var(--accent))) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12), 0 14px 26px rgba(var(--accent-rgb), 0.25) !important;
  transform: scale(1.12);
}

body[data-theme-search="category-search"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-category-search .theme-store-miniature-search {
  border-radius: 18px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 12%, var(--surface)) 0 86px, #fff 86px),
    #fff !important;
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line)) !important;
}

body[data-theme-search="neon"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-neon .theme-store-miniature-search {
  border-radius: 22px !important;
  border-color: color-mix(in srgb, var(--card-glow) 76%, var(--line)) !important;
  background: color-mix(in srgb, var(--black) 92%, var(--primary)) !important;
  box-shadow:
    0 0 0 1px rgba(var(--card-glow-rgb), 0.26),
    0 0 22px rgba(var(--card-glow-rgb), 0.22),
    0 20px 44px rgba(var(--primary-rgb), 0.22) !important;
}

body[data-theme-search="neon"][data-active-view="store"] #storeView .store-search-field input#storeSearch,
body[data-theme-search="neon"][data-active-view="store"] #storeView .store-search-field input#storeSearch::placeholder,
body[data-theme-search="neon"][data-active-view="store"] #storeView .store-search-prompt,
.theme-store-miniature--search-neon .theme-store-miniature-search strong,
.theme-store-miniature--search-neon .theme-store-miniature-search small {
  color: #fff !important;
}

body[data-theme-search="warm"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-warm .theme-store-miniature-search {
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 176, 32, 0.2), transparent 36%),
    linear-gradient(135deg, #fff7ed, #fff) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
}

body[data-theme-search="cool"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-cool .theme-store-miniature-search {
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 14% 20%, rgba(56, 189, 248, 0.2), transparent 38%),
    linear-gradient(135deg, #eff8ff, #fff) !important;
  border-color: rgba(56, 189, 248, 0.34) !important;
}

body[data-theme-search="premium-line"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-premium-line .theme-store-miniature-search {
  border-width: 1px 1px 3px !important;
  border-radius: 16px !important;
  border-bottom-color: color-mix(in srgb, var(--accent) 76%, var(--primary)) !important;
  background: #fff !important;
  box-shadow: 0 18px 34px rgba(var(--primary-rgb), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body[data-theme-search="app"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-app .theme-store-miniature-search {
  border-radius: 28px !important;
  border-color: transparent !important;
  background: color-mix(in srgb, var(--surface) 86%, var(--accent-soft)) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.06), 0 10px 24px rgba(var(--primary-rgb), 0.08) !important;
}

body[data-theme-search="supermarket"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-supermarket .theme-store-miniature-search {
  border-radius: 12px !important;
  border: 2px solid color-mix(in srgb, var(--primary) 18%, var(--line)) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, #fff) 0 70px, #fff 70px),
    #fff !important;
  box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.1) !important;
}

body[data-theme-search="express"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-express .theme-store-miniature-search {
  min-height: 46px !important;
  border-radius: 999px !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 74%, var(--accent))) !important;
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.22) !important;
}

body[data-theme-search="express"][data-active-view="store"] #storeView .store-search-field input#storeSearch,
body[data-theme-search="express"][data-active-view="store"] #storeView .store-search-field input#storeSearch::placeholder,
body[data-theme-search="express"][data-active-view="store"] #storeView .store-search-prompt,
.theme-store-miniature--search-express .theme-store-miniature-search strong,
.theme-store-miniature--search-express .theme-store-miniature-search small {
  color: #fff !important;
}

body[data-theme-search="clean"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-clean .theme-store-miniature-search {
  border-radius: 18px !important;
  border-color: #e8edf3 !important;
  background: #fff !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06) !important;
}

body[data-theme-search="calm"][data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature--search-calm .theme-store-miniature-search {
  border-radius: 22px !important;
  border-color: color-mix(in srgb, var(--line) 82%, var(--accent-soft)) !important;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--accent-soft) 22%, #fff)) !important;
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.07) !important;
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .store-search-field {
    min-height: 58px;
  }

  body[data-theme-search="large"][data-active-view="store"] #storeView .store-search-field {
    min-height: 68px !important;
  }

  body[data-theme-search="floating"][data-active-view="store"] #storeView .store-search-field {
    transform: none;
  }
}

/* v3.12 animation intensity control and final search override */
body[data-active-view="store"] #storeView,
.theme-store-miniature {
  --theme-animation-alpha: calc(var(--theme-animation-intensity, 45) / 100);
  --theme-animation-distance: calc(0.8px + (var(--theme-animation-intensity, 45) * 0.045px));
  --theme-animation-duration: calc(6.2s - (var(--theme-animation-intensity, 45) * 0.018s));
}

@keyframes theme-led-breathe-intense {
  0%, 100% {
    box-shadow:
      inset 0 0 calc(4px + (var(--theme-animation-intensity, 45) * 0.14px)) rgba(var(--card-glow-rgb), calc(var(--card-glow-inner-alpha) * var(--theme-animation-alpha))),
      0 8px calc(14px + (var(--theme-animation-intensity, 45) * 0.14px)) rgba(var(--card-glow-rgb), calc(var(--card-glow-wide-alpha) * var(--theme-animation-alpha)));
  }
  50% {
    box-shadow:
      inset 0 0 calc(8px + (var(--theme-animation-intensity, 45) * 0.24px)) rgba(var(--card-glow-rgb), calc((var(--card-glow-inner-alpha) + 0.08) * var(--theme-animation-alpha))),
      0 14px calc(22px + (var(--theme-animation-intensity, 45) * 0.18px)) rgba(var(--card-glow-rgb), calc((var(--card-glow-wide-alpha) + 0.06) * var(--theme-animation-alpha)));
  }
}

@keyframes theme-card-float-intense {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(var(--theme-animation-distance) * -1)); }
}

@keyframes theme-soft-pulse-intense {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% {
    filter:
      brightness(calc(1 + (var(--theme-animation-intensity, 45) * 0.0009)))
      saturate(calc(1 + (var(--theme-animation-intensity, 45) * 0.0014)));
  }
}

body[data-theme-animation="none"] #storeView *,
.theme-store-miniature--animation-none * {
  animation: none !important;
  transition-duration: 0ms !important;
}

body[data-theme-animation="led-breathe"] #storeView .product-card,
body[data-theme-animation="inner-glow"] #storeView .product-card,
body[data-theme-animation="shadow-breathe"] #storeView .product-card,
.theme-store-miniature--animation-led-breathe .theme-store-mini-card,
.theme-store-miniature--animation-inner-glow .theme-store-mini-card,
.theme-store-miniature--animation-shadow-breathe .theme-store-mini-card {
  animation: theme-led-breathe-intense var(--theme-animation-duration) ease-in-out infinite !important;
}

body[data-theme-animation="cards-float"] #storeView .product-card,
body[data-theme-animation="cards-wave"] #storeView .product-card,
body[data-theme-animation="card-zoom"] #storeView .product-card,
.theme-store-miniature--animation-cards-float .theme-store-mini-card,
.theme-store-miniature--animation-cards-wave .theme-store-mini-card,
.theme-store-miniature--animation-card-zoom .theme-store-mini-card {
  animation: theme-card-float-intense var(--theme-animation-duration) ease-in-out infinite !important;
  animation-delay: calc(var(--mini-card-index, 0) * 90ms) !important;
}

body[data-theme-animation="soft"] #storeView .product-card,
body[data-theme-animation="living-showcase"] #storeView .product-card,
body[data-theme-animation="premium-elegant"] #storeView .product-card,
body[data-theme-animation="offer-attention"] #storeView .product-card,
body[data-theme-animation="promo-vibrant"] #storeView .product-card,
body[data-theme-animation="search-pulse"] #storeView .store-search-field,
body[data-theme-animation="button-shine"] #storeView .product-add-button,
body[data-theme-animation="button-live"] #storeView .product-add-button,
body[data-theme-animation="buy-pulse"] #storeView .product-add-button,
body[data-theme-animation="hero-light"] #storeView .content-section:first-of-type,
body[data-theme-animation="hero-pan"] #storeView .content-section:first-of-type,
body[data-theme-animation="premium-motion"] #storeView .content-section:first-of-type,
.theme-store-miniature--animation-soft .theme-store-mini-card,
.theme-store-miniature--animation-living-showcase .theme-store-mini-card,
.theme-store-miniature--animation-premium-elegant .theme-store-mini-card,
.theme-store-miniature--animation-offer-attention .theme-store-mini-card,
.theme-store-miniature--animation-promo-vibrant .theme-store-mini-card,
.theme-store-miniature--animation-search-pulse .theme-store-miniature-search,
.theme-store-miniature--animation-button-shine .theme-store-mini-card button,
.theme-store-miniature--animation-button-live .theme-store-mini-card button,
.theme-store-miniature--animation-buy-pulse .theme-store-mini-card button,
.theme-store-miniature--animation-hero-light .theme-store-miniature-hero,
.theme-store-miniature--animation-hero-pan .theme-store-miniature-hero,
.theme-store-miniature--animation-premium-motion .theme-store-miniature-hero {
  animation: theme-soft-pulse-intense var(--theme-animation-duration) ease-in-out infinite !important;
}

body[data-active-view="store"] #storeView .store-search-field,
.theme-store-miniature .theme-store-miniature-search {
  overflow: hidden;
}

/* v3.13 desktop store search follows scroll */
body.store-toolbar-is-fixed[data-active-view="store"] #storeSearchDockAnchor {
  height: var(--store-search-anchor-space, 86px) !important;
}

@media (min-width: 681px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky;
    top: 12px;
    z-index: 260 !important;
  }

  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: calc(var(--sidebar-width, 0px) + 50%);
    right: auto !important;
    width: min(calc(100vw - var(--sidebar-width, 0px) - 48px), 860px) !important;
    max-width: 860px !important;
    margin: 0 !important;
    transform: translateX(-50%);
    z-index: 620 !important;
    border-radius: 999px !important;
    box-shadow:
      0 24px 56px rgba(var(--primary-rgb), 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.68),
      inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  }
}

@media (max-width: 680px) {
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    transform: none !important;
  }
}

/* v3.10 search reliability and controlled theme variants */
#storeView .store-search-field input#storeSearch {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

#storeView .store-search-field .store-search-icon,
#storeView .store-search-field .store-search-prompt {
  pointer-events: none;
}

#storeView .store-search-field .store-search-actions {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

body[data-active-view="store"] #storeView .store-search-field::before,
body[data-active-view="store"] #storeView .store-search-field::after {
  pointer-events: none;
}

body[data-theme-search="premium"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="premium-line"][data-active-view="store"] #storeView .store-search-field {
  border-radius: 18px !important;
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line)) !important;
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.14), inset 0 -2px 0 rgba(var(--accent-rgb), 0.44) !important;
}

body[data-theme-search="compact-fixed"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="small"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="express"][data-active-view="store"] #storeView .store-search-field {
  min-height: 48px !important;
  padding-block: 4px !important;
  border-radius: 14px !important;
}

body[data-theme-search="glass"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="floating"][data-active-view="store"] #storeView .store-search-field {
  background: color-mix(in srgb, var(--surface) 72%, transparent) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 20px 42px rgba(var(--primary-rgb), 0.16) !important;
}

body[data-theme-search="outlined"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="soft-border"][data-active-view="store"] #storeView .store-search-field {
  background: transparent !important;
  border-width: 2px !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 80%, transparent) !important;
}

body[data-theme-search="filled"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="supermarket"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="app"][data-active-view="store"] #storeView .store-search-field {
  background: color-mix(in srgb, var(--accent-soft) 56%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line)) !important;
}

body[data-theme-search="shadow"][data-active-view="store"] #storeView .store-search-field {
  box-shadow: 0 24px 50px rgba(var(--primary-rgb), 0.2) !important;
}

body[data-theme-search="accent-left"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="market-ticket"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="category-search"][data-active-view="store"] #storeView .store-search-field {
  border-left: 8px solid var(--accent) !important;
  border-radius: 16px !important;
}

body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-field {
  background: var(--dark) !important;
  border-color: color-mix(in srgb, var(--accent) 38%, var(--dark)) !important;
  color: #fff !important;
}

body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-field input#storeSearch,
body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-field input#storeSearch::placeholder,
body[data-theme-search="dark"][data-active-view="store"] #storeView .store-search-prompt {
  color: #fff !important;
}

body[data-theme-search="minimal"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="clean"][data-active-view="store"] #storeView .store-search-field,
body[data-theme-search="calm"][data-active-view="store"] #storeView .store-search-field {
  border-radius: 12px !important;
  box-shadow: none !important;
}

body[data-theme-search="large"][data-active-view="store"] #storeView .store-search-field {
  min-height: 72px !important;
  border-radius: 22px !important;
}

body[data-theme-search="square"][data-active-view="store"] #storeView .store-search-field {
  border-radius: 6px !important;
}

body[data-theme-search="voice-first"][data-active-view="store"] #storeView .store-search-tool--voice,
body[data-theme-search="camera-first"][data-active-view="store"] #storeView .store-search-tool--camera {
  background: var(--accent) !important;
  color: var(--dark) !important;
  transform: scale(1.08);
}

body[data-theme-search="neon"][data-active-view="store"] #storeView .store-search-field {
  border-color: color-mix(in srgb, var(--card-glow) 58%, var(--line)) !important;
  box-shadow: 0 0 0 1px rgba(var(--card-glow-rgb), 0.22), 0 18px 42px rgba(var(--card-glow-rgb), 0.18) !important;
}

body[data-theme-search="warm"][data-active-view="store"] #storeView .store-search-field {
  background: color-mix(in srgb, #fff4df 68%, var(--surface)) !important;
}

body[data-theme-search="cool"][data-active-view="store"] #storeView .store-search-field {
  background: color-mix(in srgb, #eaf4ff 68%, var(--surface)) !important;
}

/* v3.14 mobile store controls: keep buy/cart buttons visible on small phones */
@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .product-grid {
    align-items: start !important;
    row-gap: 14px !important;
  }

  body[data-active-view="store"] #storeView .product-card,
  body[data-active-view="store"] #storeView .product-card.product-card--no-bulk,
  body[data-active-view="store"] #storeView .product-card.product-card--has-bulk {
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
    grid-template-rows: auto auto auto auto auto auto !important;
    align-content: start !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(3n + 1) .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(5n + 2) .product-image {
    height: clamp(104px, 31vw, 142px) !important;
    min-height: clamp(104px, 31vw, 142px) !important;
    max-height: clamp(104px, 31vw, 142px) !important;
  }

  body[data-active-view="store"] #storeView .product-card .tag-row {
    min-height: 18px !important;
  }

  body[data-active-view="store"] #storeView .product-card .tag {
    max-width: 100% !important;
    font-size: 0.58rem !important;
    line-height: 1.05 !important;
  }

  body[data-active-view="store"] #storeView .product-card h3 {
    min-height: 34px !important;
    max-height: 38px !important;
    font-size: clamp(0.72rem, 3.4vw, 0.86rem) !important;
    line-height: 1.14 !important;
    overflow: hidden !important;
  }

  body[data-active-view="store"] #storeView .product-card .price-line {
    min-height: 34px !important;
  }

  body[data-active-view="store"] #storeView .product-card .price-line small {
    font-size: 0.58rem !important;
  }

  body[data-active-view="store"] #storeView .product-card .price-line strong {
    font-size: clamp(0.9rem, 4vw, 1.08rem) !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip {
    min-height: 96px !important;
    margin-inline: 6px !important;
    padding: 7px 5px !important;
    gap: 3px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-persona-role,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy span {
    display: none !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media--profile {
    width: 54px !important;
    height: 42px !important;
    min-width: 54px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media .store-card-avatar-tip-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-qty-control {
    position: relative !important;
    z-index: 5 !important;
    align-self: end !important;
    margin-top: 6px !important;
    min-height: 0 !important;
    padding-inline: 6px !important;
    gap: 5px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body[data-active-view="store"] #storeView .product-card .bulk-min-button {
    display: block !important;
    min-height: 34px !important;
    font-size: 0.62rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body[data-active-view="store"] #storeView .product-card .bulk-min-button--placeholder {
    display: none !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-qty-row,
  body[data-active-view="store"] #storeView .product-card .quantity-stepper {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 44px !important;
    overflow: visible !important;
  }

  body[data-active-view="store"] #storeView .product-card .quantity-stepper {
    grid-template-columns: 40px minmax(34px, 1fr) 40px !important;
    gap: 4px !important;
  }

  body[data-active-view="store"] #storeView .product-card .quantity-stepper-button,
  body[data-active-view="store"] #storeView .product-card .quantity-stepper-value {
    display: grid !important;
    place-items: center !important;
    min-width: 0 !important;
    min-height: 44px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body[data-active-view="store"] #storeView .product-card .quantity-stepper-button:disabled {
    opacity: 0.44 !important;
  }

  body[data-active-view="store"] .cart-side-peek {
    right: -6px !important;
    width: 58px !important;
    min-width: 58px !important;
    border-radius: 999px 0 0 999px !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 360px) {
  body[data-active-view="store"] #storeView .product-grid {
    column-gap: 8px !important;
  }

  body[data-active-view="store"] #storeView .product-card {
    padding-inline: 8px !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(3n + 1) .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(5n + 2) .product-image {
    height: clamp(94px, 29vw, 120px) !important;
    min-height: clamp(94px, 29vw, 120px) !important;
    max-height: clamp(94px, 29vw, 120px) !important;
  }

  body[data-active-view="store"] #storeView .product-card .quantity-stepper {
    grid-template-columns: 36px minmax(30px, 1fr) 36px !important;
  }
}

/* v3.15 mobile store floating shortcuts: restore Topo/Voltar/Desfazer/Sugestões */
@media (max-width: 680px) {
  body[data-active-view="store"] .assist-action-dock {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    z-index: 920 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 7px !important;
    width: min(148px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    pointer-events: none !important;
  }

  body[data-active-view="store"] .assist-action-button {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 92px !important;
    max-width: 148px !important;
    min-height: 42px !important;
    max-height: none !important;
    padding: 0 13px !important;
    overflow: visible !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--primary) !important;
    font-size: 0.68rem !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow:
      0 12px 28px rgba(31, 13, 39, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.72) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo {
    display: inline-flex !important;
    place-items: unset !important;
    width: auto !important;
    min-width: 92px !important;
    max-width: 148px !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    color: var(--primary) !important;
    overflow: visible !important;
  }

  body[data-active-view="store"] .assist-action-button::before,
  body[data-active-view="store"] .assist-action-button::first-letter,
  body[data-active-view="store"] .assist-action-button.top::before,
  body[data-active-view="store"] .assist-action-button.view-back::before,
  body[data-active-view="store"] .assist-action-button.undo::before {
    content: none !important;
    display: none !important;
  }

  body[data-active-view="store"] .assist-action-button.top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
  }

  body[data-active-view="store"] .assist-action-button.top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo,
  body[data-active-view="store"] .assist-action-button.theme-preview-exit {
    display: inline-flex !important;
  }

  body[data-active-view="store"] .assist-action-button.is-hidden,
  body[data-active-view="store"] .assist-action-button.hidden,
  body[data-active-view="store"] .assist-action-button[disabled] {
    display: none !important;
  }

  body[data-active-view="store"] .assist-action-button.theme-preview-exit {
    min-width: 132px !important;
    background: linear-gradient(135deg, var(--black), var(--primary-strong)) !important;
    color: #fff !important;
  }

  body[data-active-view="store"] .assist-action-button.undo {
    color: var(--dark) !important;
  }

  body[data-active-view="store"] .team-nudge {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    z-index: 660 !important;
  }

  body[data-active-view="store"] .team-nudge-button {
    min-width: 54px !important;
    min-height: 54px !important;
  }
}

/* v3.16 store mobile final: restore half-moon cart and readable card suggestions */
body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media {
  width: 138px !important;
  height: 64px !important;
  min-width: 0 !important;
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media .store-card-avatar-tip-avatar {
  left: 0 !important;
  top: 4px !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-product-thumb {
  right: 0 !important;
  top: 2px !important;
  width: 64px !important;
  height: 60px !important;
}

@media (max-width: 680px) {
  body[data-active-view="store"] .cart-side-peek,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--empty,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--warning,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--success {
    right: -6px !important;
    left: auto !important;
    top: 40% !important;
    width: 58px !important;
    min-width: 58px !important;
    min-height: 86px !important;
    padding: 8px 5px 8px 9px !important;
    border-radius: 999px 0 0 999px !important;
    transform: translateY(-50%) !important;
    box-shadow: -10px 14px 26px rgba(31, 13, 39, 0.18) !important;
  }

  body[data-active-view="store"] .cart-side-peek::before {
    inset: -10px 0 -10px -14px !important;
    border-radius: 999px 0 0 999px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip {
    min-height: 132px !important;
    margin-inline: 6px !important;
    padding: 8px 6px !important;
    gap: 4px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--product {
    grid-template-rows: auto auto 58px minmax(34px, auto) !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media {
    width: min(122px, 100%) !important;
    height: 58px !important;
    min-width: 0 !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media--profile {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media .store-card-avatar-tip-avatar {
    left: 0 !important;
    top: 6px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media--profile .store-card-avatar-tip-avatar {
    position: relative !important;
    left: auto !important;
    top: auto !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-product-thumb {
    right: 0 !important;
    top: 2px !important;
    width: 58px !important;
    height: 54px !important;
    border-radius: 12px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-persona-name {
    display: block !important;
    font-size: 0.66rem !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-persona-role {
    display: block !important;
    font-size: 0.52rem !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy {
    display: grid !important;
    gap: 2px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy span {
    display: -webkit-box !important;
    color: #5f5168 !important;
    font-size: 0.64rem !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy b {
    display: block !important;
    color: #2f153f !important;
    font-size: 0.68rem !important;
    line-height: 1.05 !important;
  }

  body[data-active-view="store"] .team-nudge:not(.is-empty) {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    left: auto !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
  }

  body[data-active-view="store"] .team-nudge:not(.is-empty) .team-nudge-button {
    min-width: 132px !important;
    max-width: 152px !important;
    min-height: 54px !important;
    padding: 6px 12px 6px 6px !important;
    gap: 8px !important;
  }

  body[data-active-view="store"] .team-nudge:not(.is-empty) .team-nudge-button-copy {
    position: static !important;
    display: grid !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    clip: auto !important;
    color: inherit !important;
  }

  body[data-active-view="store"] .team-nudge:not(.is-empty) .team-nudge-button-copy strong,
  body[data-active-view="store"] .team-nudge:not(.is-empty) .team-nudge-button-copy small {
    display: block !important;
    max-width: 82px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 380px) {
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media {
    width: min(94px, 100%) !important;
    height: 50px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media .store-card-avatar-tip-avatar {
    top: 6px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-product-thumb {
    top: 2px !important;
    width: 46px !important;
    height: 46px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy span {
    font-size: 0.6rem !important;
  }
}

/* v3.17 store-only adaptive mobile action bar */
@media (max-width: 920px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] .content,
  body[data-active-view="store"] #storeView .catalog-area {
    padding-bottom: calc(118px + env(safe-area-inset-bottom)) !important;
  }

  body[data-active-view="store"] .assist-action-dock {
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    z-index: 920 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 22px !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 236, 0.9)),
      linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--primary-rgb), 0.1)) !important;
    box-shadow: 0 18px 44px rgba(31, 13, 39, 0.22) !important;
    backdrop-filter: blur(16px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
    pointer-events: auto !important;
  }

  body[data-active-view="store"] .assist-action-button,
  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    color: var(--primary) !important;
    font-size: clamp(0.62rem, 2.8vw, 0.76rem) !important;
    line-height: 1.05 !important;
    text-align: center !important;
    white-space: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body[data-active-view="store"] .assist-action-button::before,
  body[data-active-view="store"] .assist-action-button::first-letter,
  body[data-active-view="store"] .assist-action-button.top::before,
  body[data-active-view="store"] .assist-action-button.view-back::before,
  body[data-active-view="store"] .assist-action-button.undo::before {
    content: none !important;
    display: none !important;
  }

  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.top.is-visible,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body[data-active-view="store"] .assist-action-button.is-disabled {
    opacity: 0.72 !important;
    filter: grayscale(0.18) !important;
  }

  body[data-active-view="store"] .assist-action-button.theme-preview-exit.is-hidden,
  body[data-active-view="store"] .assist-action-button.manual-sync.hidden,
  body[data-active-view="store"] .assist-action-button.hidden:not(.view-back):not(.undo):not(.top) {
    display: none !important;
  }

  body[data-active-view="store"] .assist-action-button.theme-preview-exit:not(.is-hidden) {
    grid-column: 1 / -1 !important;
    display: inline-flex !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-active-view="store"] .team-nudge:not(.is-empty) {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }
}

/* v3.19 store cards: keep desktop and mobile rules separated. */
@media (min-width: 681px) {
  body[data-active-view="store"] #storeView .product-grid {
    align-items: start !important;
  }

  body[data-active-view="store"] #storeView .product-card,
  body[data-active-view="store"] #storeView .product-card.product-card--no-bulk,
  body[data-active-view="store"] #storeView .product-card.product-card--has-bulk,
  body[data-active-view="store"] #storeView .product-card:hover,
  body[data-active-view="store"] #storeView .product-card:nth-child(even),
  body[data-active-view="store"] #storeView .product-card:nth-child(odd),
  body[data-active-view="store"] #storeView .product-card:nth-child(even):hover,
  body[data-active-view="store"] #storeView .product-card:nth-child(odd):hover {
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
    grid-template-rows: auto !important;
    transform: none !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(3n + 1) .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(5n + 2) .product-image {
    height: clamp(150px, 12vw, 214px) !important;
    min-height: 0 !important;
    max-height: 214px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--product {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: start !important;
    justify-content: stretch !important;
    align-content: center !important;
    gap: 8px !important;
    min-height: 54px !important;
    margin: 8px 10px 0 !important;
    padding: 7px 9px !important;
    text-align: left !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-persona-name,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-persona-role,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-product-thumb,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy b {
    display: none !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media--profile {
    grid-row: 1 !important;
    grid-column: 1 !important;
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media--profile .store-card-avatar-tip-avatar {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy {
    grid-row: 1 !important;
    grid-column: 2 !important;
    align-content: center !important;
    justify-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    text-align: left !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy::before {
    content: "Ver sugestões";
    display: block;
    color: var(--primary);
    font-size: 0.62rem;
    font-weight: 1000;
    line-height: 1;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy span {
    display: -webkit-box !important;
    color: #5f5168 !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-qty-control {
    margin-top: 8px !important;
  }
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .product-card,
  body[data-active-view="store"] #storeView .product-card.product-card--no-bulk,
  body[data-active-view="store"] #storeView .product-card.product-card--has-bulk,
  body[data-active-view="store"] #storeView .product-card:hover,
  body[data-active-view="store"] #storeView .product-card:nth-child(even),
  body[data-active-view="store"] #storeView .product-card:nth-child(odd),
  body[data-active-view="store"] #storeView .product-card:nth-child(even):hover,
  body[data-active-view="store"] #storeView .product-card:nth-child(odd):hover {
    min-height: 0 !important;
    height: auto !important;
    transform: none !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(3n + 1) .product-image,
  body[data-active-view="store"] #storeView .product-card:nth-child(5n + 2) .product-image {
    height: clamp(104px, 31vw, 142px) !important;
    max-height: 142px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip {
    min-height: 50px !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    margin-inline: 6px !important;
    padding: 6px 7px !important;
  }
}

/* v3.29 mobile cards: keep the team/product suggestion as a compact strip. */
@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--product,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--profile {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: start !important;
    align-content: center !important;
    min-height: 46px !important;
    max-height: 54px !important;
    margin: 6px 6px 0 !important;
    padding: 5px 6px !important;
    gap: 6px !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-persona-name,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-persona-role,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-product-thumb,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy b {
    display: none !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media--profile {
    grid-row: 1 !important;
    grid-column: 1 !important;
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-media--profile .store-card-avatar-tip-avatar {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy {
    grid-row: 1 !important;
    grid-column: 2 !important;
    display: grid !important;
    align-content: center !important;
    justify-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    gap: 1px !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy::before {
    content: "Ver sugestões";
    display: block !important;
    color: var(--primary) !important;
    font-size: 0.56rem !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy span {
    display: -webkit-box !important;
    color: #5f5168 !important;
    font-size: 0.58rem !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-qty-control {
    margin-top: 6px !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-image--missing {
    display: grid !important;
    place-items: center !important;
  }

  body[data-active-view="store"] #storeView .product-card .product-image--missing .product-image-placeholder {
    width: min(72px, 62%) !important;
    height: min(72px, 62%) !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: contain !important;
  }
}

/* v3.31 premium floating shortcuts: stacked actions right, team tip left. */
body[data-active-view="store"] .assist-action-dock {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  left: auto !important;
  bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  z-index: 930 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  width: auto !important;
  max-width: min(180px, calc(100vw - 32px)) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-active-view="store"] .assist-action-button,
body[data-active-view="store"] .assist-action-button.top,
body[data-active-view="store"] .assist-action-button.view-back,
body[data-active-view="store"] .assist-action-button.undo {
  appearance: none !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 124px !important;
  max-width: 172px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 236, 0.76)),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.16)) !important;
  color: var(--primary) !important;
  font-size: 0.72rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow:
    0 18px 42px rgba(31, 13, 39, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(var(--primary-rgb), 0.06) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

body[data-active-view="store"] .assist-action-button::before,
body[data-active-view="store"] .assist-action-button.top::before,
body[data-active-view="store"] .assist-action-button.view-back::before,
body[data-active-view="store"] .assist-action-button.undo::before {
  content: none !important;
  display: none !important;
}

body[data-active-view="store"] .assist-action-button.undo {
  color: #321241 !important;
}

body[data-active-view="store"] .assist-action-button.is-hidden,
body[data-active-view="store"] .assist-action-button.hidden,
body[data-active-view="store"] .assist-action-button[disabled],
body[data-active-view="store"] .assist-action-button.manual-sync.hidden,
body[data-active-view="store"] .assist-action-button.theme-preview-exit.is-hidden {
  display: none !important;
}

body[data-active-view="store"] .assist-action-button.theme-preview-exit:not(.is-hidden) {
  display: inline-flex !important;
  min-width: 156px !important;
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.92), rgba(31, 13, 39, 0.92)),
    rgba(255, 255, 255, 0.18) !important;
}

body[data-active-view="store"] .team-nudge,
body[data-active-view="store"] .team-nudge.is-empty,
body[data-active-view="store"] .team-nudge:not(.is-empty) {
  left: max(18px, env(safe-area-inset-left)) !important;
  right: auto !important;
  bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  z-index: 925 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
}

body[data-active-view="store"] .team-nudge .team-nudge-button {
  min-width: 64px !important;
  max-width: 168px !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 7px 12px 7px 7px !important;
  gap: 8px !important;
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 236, 0.78)),
    radial-gradient(circle at 20% 16%, rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-button-alpha)), transparent 54%) !important;
  box-shadow:
    0 18px 44px rgba(var(--suggestion-glow-rgb), var(--suggestion-glow-button-shadow-alpha)),
    0 10px 30px rgba(31, 13, 39, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

body[data-active-view="store"] .team-nudge .team-nudge-button-avatar {
  width: 50px !important;
  min-width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
}

body[data-active-view="store"] .team-nudge .team-nudge-button-copy {
  position: static !important;
  display: grid !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  clip: auto !important;
  text-align: left !important;
}

body[data-active-view="store"] .team-nudge .team-nudge-button-copy strong,
body[data-active-view="store"] .team-nudge .team-nudge-button-copy small {
  display: block !important;
  max-width: 92px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-active-view="store"] .team-nudge .team-nudge-button-copy strong {
  color: #321241 !important;
  font-size: 0.74rem !important;
}

body[data-active-view="store"] .team-nudge .team-nudge-button-copy small {
  color: var(--primary) !important;
  font-size: 0.6rem !important;
  text-transform: none !important;
}

body[data-active-view="store"] .team-nudge-popover {
  left: 0 !important;
  right: auto !important;
  bottom: calc(100% + 12px) !important;
}

@keyframes store-floating-shortcut-breathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (min-width: 681px) {
  body[data-active-view="store"] .assist-action-dock {
    right: max(22px, env(safe-area-inset-right)) !important;
    bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    gap: 11px !important;
    max-width: 190px !important;
  }

  body[data-active-view="store"] .assist-action-button,
  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo {
    display: inline-flex !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 249, 236, 0.58)),
      radial-gradient(circle at 24% 12%, rgba(var(--accent-rgb), 0.18), transparent 60%) !important;
    box-shadow:
      0 18px 46px rgba(31, 13, 39, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.86),
      inset 0 -1px 0 rgba(var(--primary-rgb), 0.06) !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: store-floating-shortcut-breathe 4.8s ease-in-out infinite !important;
  }

  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.top.is-visible {
    min-width: 88px !important;
    max-width: 98px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 14px !important;
    font-size: 0.68rem !important;
  }

  body[data-active-view="store"] .assist-action-button.view-back {
    min-width: 132px !important;
    max-width: 142px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 18px !important;
  }

  body[data-active-view="store"] .assist-action-button.undo {
    min-width: 158px !important;
    max-width: 174px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 0 22px !important;
    font-size: 0.74rem !important;
  }

  body[data-active-view="store"] .assist-action-button.is-disabled {
    opacity: 0.72 !important;
    filter: saturate(0.86);
  }

  body[data-active-view="store"] .team-nudge,
  body[data-active-view="store"] .team-nudge.is-empty,
  body[data-active-view="store"] .team-nudge:not(.is-empty) {
    left: max(22px, env(safe-area-inset-left)) !important;
    bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button {
    min-width: 146px !important;
    max-width: 190px !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 8px 15px 8px 8px !important;
    animation: store-floating-shortcut-breathe 5.4s ease-in-out infinite !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button-copy {
    display: grid !important;
    min-width: 70px !important;
    max-width: 112px !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button-copy strong,
  body[data-active-view="store"] .team-nudge .team-nudge-button-copy small {
    max-width: 112px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button-copy strong {
    font-size: 0.78rem !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button-copy small {
    font-size: 0.66rem !important;
  }
}

@media (max-width: 680px) {
  body[data-active-view="store"] .content,
  body[data-active-view="store"] #storeView .catalog-area {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  body[data-active-view="store"] .assist-action-dock {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    gap: 7px !important;
    max-width: 138px !important;
  }

  body[data-active-view="store"] .assist-action-button,
  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo {
    min-width: 112px !important;
    max-width: 128px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 13px !important;
    font-size: 0.66rem !important;
  }

  body[data-active-view="store"] .team-nudge,
  body[data-active-view="store"] .team-nudge.is-empty,
  body[data-active-view="store"] .team-nudge:not(.is-empty) {
    left: max(10px, env(safe-area-inset-left)) !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button {
    min-width: 58px !important;
    max-width: 116px !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 6px 10px 6px 6px !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button-avatar {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
  }

  body[data-active-view="store"] .team-nudge .team-nudge-button-copy strong,
  body[data-active-view="store"] .team-nudge .team-nudge-button-copy small {
    max-width: 44px !important;
  }
}

/* v3.42 global admin/seller command search */
.global-search-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 236, 0.74)),
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.18));
  color: var(--primary);
  box-shadow:
    0 12px 28px rgba(31, 13, 39, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.global-search-trigger span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #1f0d27;
  font-size: 1rem;
}

.global-search-trigger small {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 1000;
}

body[data-active-view^="admin"] .global-search-trigger:not(.hidden),
body[data-active-view="seller-dashboard"] .global-search-trigger:not(.hidden),
body[data-active-view="whatsapp-sender"] .global-search-trigger:not(.hidden) {
  min-width: min(420px, 34vw);
  justify-content: flex-start;
  border-radius: 16px;
  padding: 0 12px;
}

body[data-active-view^="admin"] .global-search-trigger:not(.hidden)::after,
body[data-active-view="seller-dashboard"] .global-search-trigger:not(.hidden)::after,
body[data-active-view="whatsapp-sender"] .global-search-trigger:not(.hidden)::after {
  content: "Tela, produto, cliente, pedido...";
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-view^="admin"] .global-search-trigger:not(.hidden) strong,
body[data-active-view="seller-dashboard"] .global-search-trigger:not(.hidden) strong,
body[data-active-view="whatsapp-sender"] .global-search-trigger:not(.hidden) strong {
  flex: 0 0 auto;
}

.global-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: start center;
  padding: max(42px, env(safe-area-inset-top)) 18px 18px;
  background: rgba(20, 8, 27, 0.42);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.global-search-modal.hidden {
  display: none;
}

.global-search-card {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 64px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 237, 0.92)),
    radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), 0.24), transparent 38%),
    radial-gradient(circle at 100% 8%, rgba(var(--primary-rgb), 0.16), transparent 36%);
  box-shadow:
    0 34px 90px rgba(31, 13, 39, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.global-search-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.global-search-field {
  display: grid;
  gap: 7px;
}

.global-search-field span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.global-search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 850;
  outline: none;
}

.global-search-field input:focus {
  border-color: rgba(var(--primary-rgb), 0.42);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.global-search-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 1000;
}

.global-search-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 0;
  min-height: 420px;
}

.global-search-results {
  max-height: calc(min(760px, 100vh - 64px) - 88px);
  overflow: auto;
  padding: 14px;
}

.global-search-group + .global-search-group {
  margin-top: 14px;
}

.global-search-group h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.global-search-result {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  margin: 0 0 7px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.global-search-result span {
  grid-row: 1 / 3;
  align-self: center;
  min-width: 78px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: 0.58rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.global-search-result strong,
.global-search-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result strong {
  font-size: 0.88rem;
  font-weight: 1000;
}

.global-search-result small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.global-search-result.is-selected {
  border-color: rgba(var(--primary-rgb), 0.36);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--accent-rgb), 0.18));
  box-shadow: 0 12px 28px rgba(31, 13, 39, 0.12);
}

.global-search-preview {
  display: grid;
  align-content: stretch;
  min-width: 0;
  padding: 14px;
  border-left: 1px solid rgba(var(--primary-rgb), 0.1);
  background: rgba(255, 255, 255, 0.44);
}

.global-search-preview-empty,
.global-search-preview-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 236, 0.86)),
    radial-gradient(circle at 0% 0%, rgba(var(--primary-rgb), 0.12), transparent 42%);
}

.global-search-preview-card > span {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.09);
  color: var(--primary);
  font-size: 0.64rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.global-search-preview-card strong,
.global-search-preview-empty strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.08;
}

.global-search-preview-card p,
.global-search-preview-empty span {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.34;
}

.global-search-preview-lines {
  display: grid;
  gap: 7px;
}

.global-search-preview-lines small {
  padding: 9px 10px;
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: #4c4055;
  font-weight: 850;
}

.global-search-empty {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  .global-search-trigger {
    min-height: 40px;
    padding: 0 9px;
  }

  .global-search-trigger strong,
  .global-search-trigger small {
    display: none;
  }

  .global-search-modal {
    align-items: start;
    padding: max(10px, env(safe-area-inset-top)) 10px 10px;
  }

  .global-search-card {
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .global-search-head {
    padding: 12px;
  }

  .global-search-field input {
    min-height: 48px;
    font-size: 0.92rem;
  }

  .global-search-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .global-search-results {
    max-height: 45vh;
    padding: 10px;
  }

  .global-search-preview {
    max-height: 34vh;
    overflow: auto;
    padding: 10px;
    border-left: 0;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  }

  .global-search-result {
    grid-template-columns: 1fr;
  }

  .global-search-result span {
    grid-row: auto;
    width: max-content;
    min-width: 0;
  }
}

/* v3.33 admin store cards: show cost and quick price editor on mobile. */
@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .product-card.product-card--admin,
  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk,
  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--has-bulk,
  body[data-active-view="store"] #storeView .product-card.product-card--admin:nth-child(even),
  body[data-active-view="store"] #storeView .product-card.product-card--admin:nth-child(odd) {
    content-visibility: visible !important;
    contain: none !important;
    contain-intrinsic-size: auto !important;
    display: inline-flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    break-inside: avoid !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .admin-cost-line,
  body[data-active-view="store"] #storeView .product-card.product-card--admin .quick-price-cell--card {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .admin-cost-line {
    min-height: 28px !important;
    margin: 6px 6px 0 !important;
    padding: 6px 8px !important;
    border-radius: 9px !important;
    font-size: 0.62rem !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .quick-price-cell--card {
    min-height: 76px !important;
    margin: 6px 6px 0 !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
    gap: 5px !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .quick-price-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 38px !important;
    gap: 6px !important;
    align-items: center !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .quick-price-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 0.82rem !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .quick-price-cell--card .ghost-button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .store-card-avatar-tip {
    order: 20 !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin .product-qty-control {
    order: 30 !important;
    margin-top: 6px !important;
  }
}

/* v3.36 admin no-bulk cards: suggestion replaces the empty wholesale slot. */
body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .bulk-min-button--placeholder {
  display: none !important;
}

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  min-height: 88px !important;
  max-height: none !important;
  margin: 8px 10px 0 !important;
  padding: 10px 12px !important;
  gap: 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(var(--primary-rgb), 0.16) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 236, 0.9)),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--primary-rgb), 0.08)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media,
body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media--profile {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
}

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-avatar,
body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media .store-card-avatar-tip-avatar,
body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media--profile .store-card-avatar-tip-avatar {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
}

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-product-thumb,
body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-persona-name,
body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-persona-role,
body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-copy b {
  display: none !important;
}

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-copy {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  align-content: center !important;
  min-width: 0 !important;
  gap: 3px !important;
  text-align: left !important;
}

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-copy::before {
  content: "Ver sugestões" !important;
  display: block !important;
  color: var(--primary) !important;
  font-size: 0.66rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
}

  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-copy span {
  display: -webkit-box !important;
  color: #5f5168 !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .product-qty-control {
  margin-top: 8px !important;
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    min-height: 78px !important;
    margin: 7px 6px 0 !important;
    padding: 8px 8px !important;
    gap: 7px !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media,
  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media--profile {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media .store-card-avatar-tip-avatar,
  body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-media--profile .store-card-avatar-tip-avatar {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

body[data-active-view="store"] #storeView .product-card.product-card--admin.product-card--no-bulk .store-card-avatar-tip-copy span {
    font-size: 0.58rem !important;
  }
}

/* Deep responsive scroll QA: keep mobile scroll/tap targets reliable. */
.sidebar {
  position: sticky !important;
  z-index: 1200 !important;
  pointer-events: auto !important;
}

.main-nav {
  z-index: 1201 !important;
  pointer-events: auto !important;
}

.main-nav .nav-button {
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
}

.mobile-nav-open .sidebar {
  z-index: 1300 !important;
}

.mobile-nav-open .main-nav,
.mobile-nav-open .main-nav .nav-button {
  pointer-events: auto !important;
}

@media (max-width: 1100px) {
  .main-nav {
    position: fixed !important;
  }

  .mobile-nav-open .main-nav {
    transform: translateX(0) !important;
  }

  body.mobile-nav-open .main-nav,
  .app-shell.mobile-nav-open .main-nav {
    transform: translateX(0) !important;
  }

  body.mobile-nav-open .store-search-dock,
  body.mobile-nav-open .notification-fab,
  body.mobile-nav-open .notification-panel,
  body.mobile-nav-open .cart-side-peek,
  body.mobile-nav-open .cart-side-preview,
  body.mobile-nav-open .team-nudge,
  body.mobile-nav-open .assist-action-dock {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.mobile-nav-open .mobile-nav-scrim {
    z-index: 1290 !important;
  }

  body.mobile-nav-open .main-nav {
    z-index: 1310 !important;
  }
}

body[data-active-view="store"] #storeView .product-card .bulk-min-button {
  min-height: 44px !important;
  padding: 6px 10px !important;
  line-height: 1.15 !important;
  touch-action: manipulation !important;
}

body[data-active-view="store"] #storeView .category-tabs,
body[data-active-view="store"] #storeView .tabs {
  position: relative !important;
  z-index: 20 !important;
}

body.store-toolbar-is-fixed[data-active-view="store"] #storeView #categoryTabs {
  pointer-events: none !important;
}

.card-qty-picker {
  overflow-y: auto !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

body.card-qty-picker-open {
  overflow: hidden !important;
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 520 !important;
    pointer-events: auto !important;
  }

  body.store-toolbar-is-fixed[data-active-view="store"] #storeSearchDockAnchor {
    height: calc(var(--store-toolbar-height, 74px) + 12px) !important;
  }

  body[data-active-view="store"] .assist-action-dock {
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    z-index: 610 !important;
    width: 46px !important;
    max-width: 46px !important;
    gap: 7px !important;
  }

  body[data-active-view="store"] .assist-action-button,
  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;
  }

  body[data-active-view="store"] .assist-action-button.top::before,
  body[data-active-view="store"] .assist-action-button.view-back::before,
  body[data-active-view="store"] .assist-action-button.undo::before {
    display: block !important;
    color: var(--primary) !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
  }

  body[data-active-view="store"] .assist-action-button.top::before {
    content: "↑" !important;
  }

  body[data-active-view="store"] .assist-action-button.view-back::before {
    content: "↩" !important;
  }

  body[data-active-view="store"] .assist-action-button.undo::before {
    content: "↺" !important;
    color: #321241 !important;
  }

  body[data-active-view="store"] .team-nudge {
    z-index: 600 !important;
    max-width: min(172px, calc(100vw - 76px)) !important;
  }
}

/* Absolute final mobile-menu guard: menu buttons must always receive taps. */
@media (max-width: 1100px) {
  body.mobile-nav-open {
    overflow: hidden !important;
  }

  body.mobile-nav-open .sidebar {
    position: relative !important;
    z-index: 2147483000 !important;
    pointer-events: auto !important;
  }

  body.mobile-nav-open #mainNav,
  body.mobile-nav-open .main-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(94vw, 430px) !important;
    max-width: min(94vw, 430px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2147483200 !important;
    pointer-events: auto !important;
  }

  body.mobile-nav-open #mainNav .nav-button,
  body.mobile-nav-open .main-nav .nav-button {
    position: relative !important;
    z-index: 2147483201 !important;
    pointer-events: auto !important;
  }

  body.mobile-nav-open .mobile-nav-scrim {
    z-index: 2147482990 !important;
    pointer-events: auto !important;
  }

body.mobile-nav-open .content,
  body.mobile-nav-open .cart-side-peek,
  body.mobile-nav-open .cart-side-preview,
  body.mobile-nav-open .cart-drawer,
  body.mobile-nav-open .team-nudge,
  body.mobile-nav-open .assist-action-dock,
  body.mobile-nav-open .notification-fab,
  body.mobile-nav-open .notification-panel,
  body.mobile-nav-open .store-search-dock {
    pointer-events: none !important;
  }
}

/* Interaction performance pass: keep taps and scroll native on mobile. */
.product-search-suggestions {
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

.product-search-suggestions.hidden {
  pointer-events: none !important;
}

.search-field,
.product-search-suggestions button,
.nav-button,
.mobile-nav-toggle,
button {
  touch-action: manipulation;
}

@media (max-width: 1100px) {
  body.mobile-nav-open #mainNav,
  body.mobile-nav-open .main-nav {
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
  }
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  .product-search-suggestions,
  .store-search-field,
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.mobile-nav-open #mainNav,
  body.mobile-nav-open .main-nav,
  .modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* v3.03.96 search bar upgrade */
#storeView .store-search-field {
  position: relative;
  z-index: 10001 !important;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  overflow: visible;
}

#storeView .catalog-area > .toolbar.store-search-dock {
  position: relative;
  z-index: 10000 !important;
  pointer-events: auto;
}

body.store-toolbar-is-fixed #storeView .catalog-area > .toolbar.store-search-dock {
  z-index: 10000 !important;
}

#storeView .store-search-field.has-value,
#storeView .store-search-field.is-search-focused {
  padding-right: 14px;
}

#storeView .store-search-marquee {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#storeView .store-search-field.show-search-marquee input#storeSearch::placeholder,
#storeView .store-search-field.show-search-marquee .store-search-prompt {
  opacity: 0;
}

#storeView .store-search-field.show-search-marquee .store-search-marquee {
  opacity: 1;
  transform: translateY(0);
}

.store-search-marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: store-search-marquee 28s linear infinite;
}

.store-search-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(31, 13, 39, 0.08);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.store-search-marquee-item:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.32);
  outline-offset: 2px;
}

.store-search-marquee-item strong {
  overflow: hidden;
  max-width: none;
  font-size: 0.8rem;
  font-weight: 950;
}

.store-search-marquee-item em {
  color: var(--primary);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 1000;
}

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

#storeView .store-search-clear {
  position: relative;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(31, 13, 39, 0.1);
  pointer-events: auto;
}

#storeView .store-search-actions {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  position: relative;
  z-index: 10003 !important;
  pointer-events: auto;
}

#storeView .store-search-field input#storeSearch {
  position: relative;
  z-index: 3;
}

#storeView .store-search-clear.hidden {
  display: none;
}

#storeView .store-search-tool.is-processing {
  border-color: rgba(14, 165, 233, 0.55);
  color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), 0 10px 22px rgba(14, 165, 233, 0.2);
}

#storeView .store-search-tool.is-error {
  border-color: rgba(239, 68, 68, 0.55);
  color: #dc2626;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12), 0 10px 22px rgba(239, 68, 68, 0.18);
}

.suggestion-product-thumb--marquee {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
}

.product-search-suggestions button[data-product-search-pick] {
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 68px;
}

.product-search-suggestions .suggestion-product-thumb {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 235, 255, 0.82));
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 8px 18px rgba(31, 13, 39, 0.1);
}

.product-search-suggestions .suggestion-product-thumb img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-search-copy em {
  justify-self: start;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(250, 169, 31, 0.18);
  color: #9a5c00;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.store-search-correction,
.store-search-offer-chip,
.store-search-empty-clear,
.store-search-history-chip {
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  font-weight: 950;
}

.store-search-correction,
.store-search-offer-chip {
  width: 100%;
  justify-content: center;
  margin: 0 0 8px;
  padding: 10px 12px;
}

.store-search-offer-chip {
  border-color: rgba(250, 169, 31, 0.42);
  background: linear-gradient(135deg, rgba(255, 245, 211, 0.98), rgba(255, 255, 255, 0.96));
  color: #9a5c00;
}

.store-search-history {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.store-search-history small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.store-search-history > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.store-search-history-chip {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.store-search-empty {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--muted);
}

.store-search-empty strong {
  color: var(--ink);
}

.store-search-empty-clear {
  justify-self: start;
  padding: 9px 14px;
}

@media (max-width: 680px) {
  #storeView .store-search-marquee-item {
    max-width: 220px;
    padding-right: 10px;
  }

  .store-search-marquee-item strong {
    max-width: 126px;
    font-size: 0.76rem;
  }

  #storeView .store-search-clear {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-search-marquee-track {
    animation: none;
  }
}

/* Final guard: the team suggestion is a store-only shortcut, never a modal overlay. */
body:not([data-active-view="store"]) .team-nudge,
body.premium-gate-open .team-nudge,
body.mobile-nav-open .team-nudge,
body.global-search-open .team-nudge,
body.cart-drawer-open .team-nudge,
body.cart-preview-open .team-nudge {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 2147483000 !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-popover {
  pointer-events: auto !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-content,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-actions,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-actions button,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-qty,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-qty button {
  position: relative !important;
  z-index: 4 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button {
  min-width: 152px !important;
  max-width: min(206px, calc(100vw - 28px)) !important;
  padding-right: 14px !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy {
  display: grid !important;
  gap: 0 !important;
  max-width: 132px !important;
  line-height: 0.98 !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-kicker {
  display: block !important;
  max-width: 132px !important;
  overflow: hidden !important;
  color: var(--primary) !important;
  font-size: 0.64rem !important;
  font-weight: 1000 !important;
  letter-spacing: 0 !important;
  line-height: 0.98 !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy strong,
body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy small {
  max-width: 132px !important;
  line-height: 1 !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy strong {
  font-size: 0.94rem !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy small {
  font-size: 0.66rem !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-actions {
  grid-template-columns: 1fr !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-nav {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-nav [data-team-nudge-prev],
body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-nav [data-team-nudge-next] {
  grid-column: auto !important;
  width: 100% !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-add-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) [data-team-nudge-view],
body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) [data-team-nudge-add] {
  width: 100% !important;
}

body[data-active-view="store"] .team-nudge,
body[data-active-view="store"] .team-nudge *,
body[data-active-view="store"] .team-nudge .team-nudge-button,
body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-popover,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-actions button {
  scroll-behavior: auto !important;
}

body[data-active-view="store"] .team-nudge .team-nudge-button,
body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-actions button,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-qty button {
  animation: none !important;
  transform: none !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-head {
  grid-template-columns: auto minmax(0, 1fr) !important;
  padding-right: 42px !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 8 !important;
  margin: 0 !important;
}

@media (max-width: 420px) {
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button {
    min-width: clamp(172px, 54vw, 228px) !important;
    max-width: min(228px, calc(100vw - 132px)) !important;
    min-height: 92px !important;
    height: 92px !important;
    padding: 10px 16px 10px 10px !important;
    touch-action: manipulation !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-avatar {
    width: 70px !important;
    min-width: 70px !important;
    height: 70px !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy,
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-kicker,
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy strong,
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy small {
    max-width: 126px !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-kicker {
    font-size: 0.74rem !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy strong {
    font-size: 1rem !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy small {
    font-size: 0.72rem !important;
  }
}

@media (min-width: 421px) and (max-width: 680px) {
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button {
    min-width: 218px !important;
    max-width: min(236px, calc(100vw - 150px)) !important;
    min-height: 92px !important;
    height: 92px !important;
    padding: 10px 17px 10px 10px !important;
    touch-action: manipulation !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-avatar {
    width: 70px !important;
    min-width: 70px !important;
    height: 70px !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy,
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-kicker,
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy strong,
  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy small {
    max-width: 132px !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-kicker {
    font-size: 0.74rem !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy strong {
    font-size: 1rem !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button-copy small {
    font-size: 0.72rem !important;
  }
}

/* v3.03.91 avatar guide selection: clear selected guides and keep them first. */
body[data-active-view="store"] #storeView .store-team-hub {
  border-color: color-mix(in srgb, var(--team-accent, var(--primary)) 24%, #fff) !important;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--team-accent, var(--primary)) 16%, transparent), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 239, 0.88)) !important;
}

body[data-active-view="store"] #storeView .store-guide-empty,
body[data-active-view="store"] #storeView .store-guide-primary-card,
body[data-active-view="store"] #storeView .store-guide-assistant-card {
  position: relative !important;
  display: grid !important;
  align-items: center !important;
  min-width: 0 !important;
  border: 1px solid color-mix(in srgb, var(--team-accent, var(--primary)) 22%, #fff) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--team-accent, var(--primary)) 18%, transparent), transparent 52%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px color-mix(in srgb, var(--team-accent, var(--primary)) 13%, transparent) !important;
}

body[data-active-view="store"] #storeView .store-guide-empty {
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 14px !important;
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 22px !important;
}

body[data-active-view="store"] #storeView .store-guide-selected {
  display: grid !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

body[data-active-view="store"] #storeView .store-guide-primary-card {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 14px !important;
  padding: 14px !important;
  border-radius: 24px !important;
}

body[data-active-view="store"] #storeView .team-avatar--guide-primary {
  width: 78px !important;
  height: 78px !important;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.82),
    0 0 0 7px color-mix(in srgb, var(--team-accent, var(--primary)) 15%, transparent),
    0 16px 28px color-mix(in srgb, var(--team-accent, var(--primary)) 22%, transparent) !important;
}

body[data-active-view="store"] #storeView .store-guide-primary-card small,
body[data-active-view="store"] #storeView .store-guide-assistant-card small,
body[data-active-view="store"] #storeView .store-guide-empty small {
  color: var(--team-accent, var(--primary)) !important;
  font-size: 0.68rem !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body[data-active-view="store"] #storeView .store-guide-primary-card h2 {
  margin: 2px 0 0 !important;
  color: var(--ink) !important;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem) !important;
  line-height: 1 !important;
}

body[data-active-view="store"] #storeView .store-guide-primary-card strong,
body[data-active-view="store"] #storeView .store-guide-assistant-card strong {
  display: block !important;
  color: #2b2035 !important;
  font-weight: 1000 !important;
  line-height: 1.02 !important;
}

body[data-active-view="store"] #storeView .store-guide-primary-card p,
body[data-active-view="store"] #storeView .store-guide-empty p {
  margin: 5px 0 0 !important;
  color: var(--muted) !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
}

body[data-active-view="store"] #storeView .store-guide-clear {
  align-self: start !important;
  min-height: 34px !important;
  padding: 7px 11px !important;
  border: 1px solid color-mix(in srgb, var(--team-accent, var(--primary)) 22%, #fff) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  color: var(--team-accent, var(--primary)) !important;
  font-size: 0.7rem !important;
  font-weight: 1000 !important;
}

body[data-active-view="store"] #storeView .store-guide-assistants {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 8px !important;
}

body[data-active-view="store"] #storeView .store-guide-assistant-card {
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 10px !important;
  border-radius: 18px !important;
}

body[data-active-view="store"] #storeView .team-avatar--guide-assistant {
  width: 48px !important;
  height: 48px !important;
}

body[data-active-view="store"] #storeView .store-guide-assistant-card span {
  display: block !important;
  color: var(--muted) !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
}

body[data-active-view="store"] #storeView .store-team-chip {
  touch-action: manipulation !important;
}

body[data-active-view="store"] #storeView .store-team-chip.is-selected {
  border-color: color-mix(in srgb, var(--team-accent, var(--primary)) 62%, #fff) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-accent, var(--primary)) 22%, #fff), rgba(255, 255, 255, 0.96)) !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--team-accent, var(--primary)) 12%, transparent),
    0 16px 28px color-mix(in srgb, var(--team-accent, var(--primary)) 20%, transparent) !important;
}

body[data-active-view="store"] #storeView .store-team-chip.is-selected .team-avatar--chip {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.88),
    0 0 0 5px color-mix(in srgb, var(--team-accent, var(--primary)) 18%, transparent),
    0 12px 22px color-mix(in srgb, var(--team-accent, var(--primary)) 24%, transparent) !important;
}

body[data-active-view="store"] #storeView .store-team-chip em {
  display: block !important;
  max-width: 150px !important;
  overflow: hidden !important;
  color: #3a2a45 !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-active-view="store"] #storeView .store-team-chip.is-selected small {
  color: var(--team-accent, var(--primary)) !important;
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .store-guide-primary-card {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  body[data-active-view="store"] #storeView .store-guide-clear {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  body[data-active-view="store"] #storeView .team-avatar--guide-primary {
    width: 64px !important;
    height: 64px !important;
  }

  body[data-active-view="store"] #storeView .store-guide-assistants {
    grid-template-columns: 1fr !important;
  }
}

/* v3.03.92 guide copy cleanup: no duplicate empty guide card. */
body[data-active-view="store"] #storeView .store-team-hub.is-store-guide-empty {
  padding-bottom: 10px !important;
}

body[data-active-view="store"] #storeView .store-team-hub.is-store-guide-empty .store-team-chip-row {
  margin-top: 10px !important;
}

body[data-active-view="store"] #storeView .store-team-hub.is-store-guide-empty .store-team-hub-head p {
  max-width: 760px !important;
}

/* v3.03.104 global card responsiveness + accessibility font toggle */
:root {
  --global-card-min: clamp(178px, 17vw, 292px);
  --global-card-gap: clamp(10px, 1.15vw, 18px);
  --store-product-card-min: clamp(176px, 15.5vw, 280px);
}

html[data-accessible-font="large"] {
  font-size: 112.5%;
}

html[data-accessible-font="xlarge"] {
  font-size: 125%;
}

html[data-accessible-font="large"] {
  --global-card-min: clamp(210px, 20vw, 330px);
  --store-product-card-min: clamp(204px, 19vw, 318px);
}

html[data-accessible-font="xlarge"] {
  --global-card-min: clamp(232px, 23vw, 360px);
  --store-product-card-min: clamp(226px, 22vw, 350px);
}

html[data-accessible-font="large"] body,
html[data-accessible-font="xlarge"] body {
  line-height: 1.48;
}

html[data-accessible-font="large"] :where(button, input, select, textarea),
html[data-accessible-font="xlarge"] :where(button, input, select, textarea) {
  font-size: max(1em, 16px);
}

body .topbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  width: min(640px, 54vw) !important;
}

body .topbar-actions .accessibility-font-button {
  order: 1 !important;
  flex: 0 0 48px !important;
}

body .topbar-actions #customerAccessButton {
  order: 2 !important;
  flex: 0 1 176px !important;
}

body .topbar-actions .whatsapp-button {
  order: 3 !important;
  flex: 1 1 248px !important;
}

body .topbar-actions .global-search-trigger {
  order: 0 !important;
}

.accessibility-font-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 236, 0.88)),
    radial-gradient(circle at 22% 16%, rgba(var(--accent-rgb), 0.24), transparent 58%);
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(31, 13, 39, 0.1);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  touch-action: manipulation;
}

.accessibility-font-button span {
  display: block;
  transform: translateY(-1px);
  font-size: 1rem;
}

.accessibility-font-button[aria-pressed="true"] {
  border-color: rgba(var(--accent-rgb), 0.62);
  background: linear-gradient(135deg, var(--accent), #ffcf48);
  color: #251303;
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.14),
    0 14px 26px rgba(var(--accent-rgb), 0.22);
}

:where(
  .product-grid,
  .store-spotlight-grid,
  .checkout-offer-grid,
  .personal-deal-grid,
  .stats-grid,
  .admin-grid,
  .seller-card-grid,
  .seller-work-grid,
  .seller-pricing-grid,
  .analytics-grid,
  .order-admin-grid,
  .access-choice-grid,
  .ai-process-grid,
  .ai-command-grid,
  .ai-guide-grid,
  .suggestion-team-admin-grid,
  .theme-field-grid,
  .theme-admin-grid,
  .tabloid-config-grid,
  .tabloid-field-grid,
  .tabloid-product-grid,
  .survey-admin-grid,
  .survey-question-grid,
  .survey-summary-grid,
  .promo-dashboard-grid,
  .promo-active-grid,
  .promo-preview-grid,
  .promo-kind-grid,
  .promo-command-grid,
  .missing-image-grid,
  .capture-history-grid,
  .public-tabloid-grid,
  .whatsapp-sender-grid,
  .manager-board-grid,
  .finance-dre-grid,
  .report-section-grid,
  .reports-control-grid,
  .compact-settings-grid,
  .alarm-schedule-grid,
  .monitored-grid,
  .flush-grid,
  .crm-client-decision-grid,
  .crm-product-price-grid,
  .checkout-final-offer-grid,
  .trust-popup-grid,
  .footer-grid,
  .print-info-grid
) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--global-card-min)), 1fr)) !important;
  gap: var(--global-card-gap) !important;
  align-items: stretch !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

:where(
  div[class*="-grid"],
  section[class*="-grid"],
  form[class*="-grid"],
  aside[class*="-grid"]
) {
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-active-view="store"] #storeView :where(.product-grid, .store-spotlight-grid, .checkout-offer-grid) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--store-product-card-min)), 1fr)) !important;
  grid-auto-flow: row !important;
  gap: clamp(12px, 1.25vw, 20px) !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body[data-active-view="store"][data-theme-layout] #storeView :where(.product-grid, .store-spotlight-grid),
body[data-active-view="store"][data-theme-presentation] #storeView :where(.product-grid, .store-spotlight-grid) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--store-product-card-min)), 1fr)) !important;
  grid-auto-flow: row !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body[data-active-view="store"] #storeView .store-layout,
body[data-active-view="store"] #storeView .catalog-area,
body[data-active-view="store"] #storeView .catalog-area > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

body[data-active-view="store"] #storeView .store-layout {
  overflow-x: clip !important;
}

@media (min-width: 681px) and (max-width: 1100px) {
  body[data-active-view="store"] #storeView .store-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-active-view="store"] #storeView .catalog-area {
    width: 100% !important;
  }

  body[data-active-view="store"] #storeView .cart-panel {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
  }
}

:where(
  article[class*="card"],
  section[class*="card"],
  div[class*="card"],
  form[class*="card"],
  aside[class*="card"]
) {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}

:where(
  article[class*="card"],
  section[class*="card"],
  div[class*="card"],
  form[class*="card"],
  aside[class*="card"]
) :where(h1, h2, h3, h4, p, span, strong, small, label, button) {
  min-width: 0;
}

:where(
  article[class*="card"],
  section[class*="card"],
  div[class*="card"],
  form[class*="card"],
  aside[class*="card"]
) :where(img, video, canvas, svg) {
  max-width: 100%;
}

body[data-active-view="store"] #storeView .product-card {
  width: 100% !important;
  min-width: 0 !important;
}

body[data-active-view="store"] #storeView .product-card .product-image {
  height: clamp(132px, 13vw, 226px) !important;
}

body[data-active-view="store"] #storeView .product-card :where(h3, .price-line, .tag-row, .product-qty-control, .store-card-avatar-tip) {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (min-width: 1500px) {
  :root {
    --global-card-min: clamp(170px, 13vw, 276px);
    --store-product-card-min: clamp(170px, 12vw, 264px);
  }

  html[data-accessible-font="large"] {
    --global-card-min: clamp(198px, 15vw, 310px);
    --store-product-card-min: clamp(194px, 14vw, 298px);
  }

  html[data-accessible-font="xlarge"] {
    --global-card-min: clamp(220px, 17vw, 342px);
    --store-product-card-min: clamp(216px, 16vw, 332px);
  }
}

@media (max-width: 980px) {
  body .topbar-actions {
    width: 100% !important;
    justify-content: stretch !important;
  }
}

@media (max-width: 560px) {
  :root {
    --global-card-min: clamp(150px, 44vw, 220px);
    --store-product-card-min: clamp(150px, 44vw, 214px);
  }

  html[data-accessible-font="large"] {
    --global-card-min: min(100%, 250px);
    --store-product-card-min: min(100%, 250px);
  }

  html[data-accessible-font="xlarge"] {
    --global-card-min: min(100%, 290px);
    --store-product-card-min: min(100%, 286px);
  }

  body .topbar-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 8px !important;
  }

  body .topbar-actions .accessibility-font-button {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 48px !important;
    height: 42px !important;
    min-height: 42px !important;
    justify-self: end !important;
  }

  body .topbar-actions #customerAccessButton {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }

  body .topbar-actions .whatsapp-button {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  body .topbar-actions .global-search-trigger {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

body[data-active-view="store"] #storeView .product-card .product-image {
    height: clamp(108px, 31vw, 152px) !important;
  }
}

html[data-accessible-font="large"] body[data-active-view="store"] #storeView .product-card :where(h3, .price-line strong, .price-line b, .store-card-avatar-tip strong),
html[data-accessible-font="large"] :where(.admin-card, .analytics-card, .missing-image-card, .seller-card, .order-card, .management-card, .crm-card) :where(h2, h3, strong) {
  font-size: calc(1em * 1.08) !important;
}

html[data-accessible-font="large"] body[data-active-view="store"] #storeView .product-card :where(p, small, span, button, label),
html[data-accessible-font="large"] :where(.admin-card, .analytics-card, .missing-image-card, .seller-card, .order-card, .management-card, .crm-card) :where(p, small, span, button, label) {
  font-size: calc(1em * 1.06) !important;
}

html[data-accessible-font="xlarge"] body[data-active-view="store"] #storeView .product-card :where(h3, .price-line strong, .price-line b, .store-card-avatar-tip strong),
html[data-accessible-font="xlarge"] :where(.admin-card, .analytics-card, .missing-image-card, .seller-card, .order-card, .management-card, .crm-card) :where(h2, h3, strong) {
  font-size: calc(1em * 1.16) !important;
}

html[data-accessible-font="xlarge"] body[data-active-view="store"] #storeView .product-card :where(p, small, span, button, label),
html[data-accessible-font="xlarge"] :where(.admin-card, .analytics-card, .missing-image-card, .seller-card, .order-card, .management-card, .crm-card) :where(p, small, span, button, label) {
  font-size: calc(1em * 1.12) !important;
}

/* v3.03.105 clickability, popup closing, keyboard safety and lighter scroll. */
.modal-backdrop {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  align-items: center !important;
  justify-items: center !important;
}

.admin-modal-card,
.customer-modal-card,
.seller-access-card,
.premium-gate-panel,
.premium-gate-card {
  max-height: calc(100dvh - 40px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

#customerModal .admin-modal-card,
#sellerAccessModal .admin-modal-card,
#sellerModal .admin-modal-card,
#accessChoiceModal .admin-modal-card {
  padding-bottom: max(22px, calc(18px + env(safe-area-inset-bottom))) !important;
}

@media (max-width: 680px), (max-height: 520px) {
  .modal-backdrop {
    place-items: start center !important;
    padding: max(12px, env(safe-area-inset-top)) 12px calc(120px + env(safe-area-inset-bottom)) !important;
  }

  .admin-modal-card,
  .customer-modal-card,
  .seller-access-card {
    width: min(100%, 520px) !important;
    max-height: calc(100dvh - 36px - env(safe-area-inset-bottom)) !important;
  }

  .premium-gate {
    place-items: start center !important;
    padding: max(14px, env(safe-area-inset-top)) 12px calc(120px + env(safe-area-inset-bottom)) !important;
  }

  .premium-gate-panel,
  .premium-gate-card {
    max-height: calc(100dvh - 36px - env(safe-area-inset-bottom)) !important;
  }
}

body.mobile-keyboard-open .modal-backdrop {
  place-items: start center !important;
  padding-top: max(8px, env(safe-area-inset-top)) !important;
  padding-bottom: calc(18px + var(--android-keyboard-inset, 0px) + env(safe-area-inset-bottom)) !important;
}

body.mobile-keyboard-open .admin-modal-card,
body.mobile-keyboard-open .customer-modal-card,
body.mobile-keyboard-open .seller-access-card,
body.mobile-keyboard-open .premium-gate-card {
  max-height: min(calc(var(--visual-viewport-height, 100dvh) - 20px), calc(100dvh - 20px)) !important;
}

body.mobile-keyboard-open :where(input, textarea, select) {
  scroll-margin-bottom: calc(150px + var(--android-keyboard-inset, 0px)) !important;
}

body.mobile-keyboard-open[data-active-view="store"] :where(.assist-action-dock, .cart-side-peek, .notification-fab, .team-nudge:not(.is-open)) {
  opacity: 0.18 !important;
  pointer-events: none !important;
}

body[data-active-view="store"] #storeView .store-team-hub,
body[data-active-view="store"] #storeView .store-team-chip,
body[data-active-view="store"] #storeView #categoryTabs,
body[data-active-view="store"] #storeView #categoryTabs button {
  position: relative !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

body.store-team-chips-obscured[data-active-view="store"] #storeView .store-team-chip-row {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.store-team-chips-obscured[data-active-view="store"] #storeView .store-team-hub button {
  visibility: hidden !important;
  pointer-events: none !important;
}

body[data-active-view="store"] #storeView .product-card :where(.product-qty-control button, .quantity-control button, [data-increase], [data-decrease]) {
  min-width: 44px !important;
  min-height: 44px !important;
  touch-action: manipulation !important;
}

body[data-active-view="store"] #storeView .product-card .quantity-stepper-button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  flex: 0 0 44px !important;
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    z-index: 220 !important;
  }

  body[data-active-view="store"] #storeView .store-search-field {
    z-index: 221 !important;
  }

  body[data-active-view="store"] #storeView .store-search-actions,
  body[data-active-view="store"] #storeView .store-search-tool {
    position: relative !important;
    z-index: 222 !important;
  }

  body[data-active-view="store"] #storeView .store-search-field .product-search-suggestions {
    z-index: 940 !important;
  }

  body[data-active-view="store"] #storeView .store-team-hub,
  body[data-active-view="store"] #storeView #categoryTabs {
    z-index: 95 !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty):not(.is-open) {
    z-index: 70 !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) {
    z-index: 1250 !important;
  }

  body[data-active-view="store"] .assist-action-dock,
  body[data-active-view="store"] .cart-side-peek,
  body[data-active-view="store"] .notification-fab {
    z-index: 180 !important;
  }
}

.global-search-trigger[disabled],
.global-search-trigger[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.52 !important;
  pointer-events: none !important;
}

body[data-active-view="store"] #storeView :where(.product-card, .store-team-hub, .store-spotlight-card),
:where(.admin-card, .analytics-card, .missing-image-card, .seller-card, .order-card, .management-card, .crm-card) {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

@media (prefers-reduced-motion: reduce), (max-width: 680px) {
  body[data-active-view="store"] #storeView :where(.product-card, .store-team-hub, .store-spotlight-card),
  :where(.admin-card, .analytics-card, .missing-image-card, .seller-card, .order-card, .management-card, .crm-card) {
    transition-duration: 0.01ms !important;
  }
}

/* v3.03.107 search bar performance/layout only */
body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
  align-items: stretch !important;
  gap: clamp(8px, 1.1vw, 14px) !important;
}

body[data-active-view="store"] #storeView .store-search-field {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  grid-template-rows: minmax(30px, auto) minmax(46px, auto) !important;
  align-items: center !important;
  column-gap: 8px !important;
  row-gap: 4px !important;
  min-height: 86px !important;
  padding: 8px 12px !important;
}

body[data-active-view="store"] #storeView .store-search-field > span:first-child {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

body[data-active-view="store"] #storeView .store-search-marquee {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-height: 30px !important;
  padding-left: 4px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

body[data-active-view="store"] #storeView .store-search-marquee:hover .store-search-marquee-track {
  animation-play-state: paused !important;
}

body[data-active-view="store"] #storeView .store-search-icon {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 42px !important;
  height: 42px !important;
}

body[data-active-view="store"] #storeView .store-search-field input#storeSearch {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
}

body[data-active-view="store"] #storeView .store-search-actions {
  grid-column: 3 !important;
  grid-row: 2 !important;
  align-self: center !important;
  gap: 6px !important;
}

body[data-active-view="store"] #storeView .store-search-prompt {
  display: none !important;
}

body[data-active-view="store"] #storeView .store-sort-field {
  flex: 0 1 clamp(112px, 14vw, 152px) !important;
  min-width: clamp(108px, 13vw, 148px) !important;
  max-width: 152px !important;
}

body[data-active-view="store"] #storeView .store-sort-field select {
  min-width: 0 !important;
  width: 100% !important;
  padding-inline: 16px 28px !important;
}

body[data-active-view="store"] .store-search-marquee-track {
  animation-duration: 64s !important;
  will-change: transform !important;
}

body[data-active-view="store"] .store-search-marquee-item {
  min-height: 44px !important;
  padding: 4px 13px 4px 5px !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

body[data-active-view="store"] .store-search-marquee-item strong {
  max-width: none !important;
  font-size: clamp(0.82rem, 0.92vw, 1rem) !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body[data-active-view="store"] .store-search-marquee-item em {
  font-size: clamp(0.8rem, 0.86vw, 0.95rem) !important;
}

body[data-active-view="store"] #storeView .store-search-field .product-search-suggestions {
  z-index: 1360 !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) {
  z-index: 1380 !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) {
  z-index: 1385 !important;
}

body[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button,
body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-popover {
  pointer-events: auto !important;
}

body.premium-gate-open .team-nudge,
body.mobile-nav-open .team-nudge,
body.global-search-open .team-nudge,
body.cart-drawer-open .team-nudge,
body.cart-preview-open .team-nudge,
body:has(.modal-backdrop:not(.hidden)) .team-nudge {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    bottom: auto !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    top: max(10px, env(safe-area-inset-top)) !important;
    bottom: auto !important;
  }

  body[data-active-view="store"] #storeView .store-search-field {
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    min-height: 82px !important;
    padding: 7px 10px !important;
  }

  body[data-active-view="store"] #storeView .store-search-tool,
  body[data-active-view="store"] #storeView .store-search-clear {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  body[data-active-view="store"] #storeView .store-search-actions {
    gap: 4px !important;
  }

  body[data-active-view="store"] #storeView .store-sort-field {
    flex-basis: clamp(96px, 28vw, 118px) !important;
    min-width: clamp(96px, 28vw, 118px) !important;
    max-width: 118px !important;
  }

  body[data-active-view="store"] .store-search-marquee-track {
    animation-duration: 72s !important;
  }

  body[data-active-view="store"] .store-search-marquee-item strong {
    max-width: none !important;
    font-size: 0.84rem !important;
  }

  body.mobile-keyboard-open[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) {
    opacity: 1 !important;
    pointer-events: none !important;
  }

  body.mobile-keyboard-open[data-active-view="store"] .team-nudge.is-store-visible:not(.is-empty) .team-nudge-button {
    pointer-events: auto !important;
  }
}

@media (max-width: 380px) {
  body[data-active-view="store"] #storeView .store-search-field {
    min-height: 78px !important;
    padding-block: 6px !important;
    row-gap: 2px !important;
  }
}

/* v3.03.108 store card readability guard: keep titles and suggestion strips usable. */
body[data-active-view="store"] #storeView .product-card,
body[data-active-view="store"] #storeView .product-card :where(h3, .store-card-avatar-tip, .store-card-avatar-tip *) {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body[data-active-view="store"] #storeView .product-card h3 {
  min-width: min(100%, 11rem) !important;
  max-width: 100% !important;
  white-space: normal !important;
  hyphens: auto !important;
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip,
body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--product,
body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--profile {
  width: calc(100% - 20px) !important;
  min-width: min(100%, 10rem) !important;
  max-width: calc(100% - 12px) !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy {
  min-width: 0 !important;
  width: 100% !important;
}

body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy::before,
body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip-copy span {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
}

@media (max-width: 680px) {
  body[data-active-view="store"] #storeView .product-card h3 {
    min-width: min(100%, 8.5rem) !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--product,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--profile {
    width: calc(100% - 12px) !important;
    min-width: min(100%, 8rem) !important;
    max-width: calc(100% - 12px) !important;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  body[data-active-view="store"] #storeView .product-card,
  body[data-active-view="store"] #storeView .product-card.product-card--no-bulk,
  body[data-active-view="store"] #storeView .product-card.product-card--has-bulk {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "image"
      "tags"
      "title"
      "price"
      "cost"
      "admin"
      "bulk"
      "suggestion"
      "qty" !important;
  }

  body[data-active-view="store"] #storeView .product-card > :where(
    .product-image,
    .tag-row,
    h3,
    .price-line,
    .admin-cost-line,
    .quick-price-cell--card,
    .seller-negotiation-box,
    .bulk-min-button,
    .store-card-avatar-tip,
    .product-qty-control
  ) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--product,
  body[data-active-view="store"] #storeView .product-card .store-card-avatar-tip--profile {
    width: calc(100% - 20px) !important;
    min-width: min(100%, 10rem) !important;
    max-width: calc(100% - 20px) !important;
  }
}

/* v3.03.109 mobile/tablet search marquee containment. */
@media (max-width: 1100px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body[data-active-view="store"] #storeView .store-search-field,
  body[data-active-view="store"] #storeView .store-search-marquee {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain !important;
    scrollbar-width: none !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee::-webkit-scrollbar {
    display: none !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: min(70vw, 24rem) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-item strong {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-item em {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }

  body[data-active-view="store"] #storeView .suggestion-product-thumb--marquee {
    flex: 0 0 28px !important;
  }
}

@media (max-width: 430px) {
  body[data-active-view="store"] #storeView .store-search-field {
    column-gap: 6px !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-item {
    gap: 6px !important;
    max-width: min(70vw, 18rem) !important;
    padding-inline: 4px 8px !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-item strong {
    max-width: none !important;
    font-size: 0.78rem !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-item em {
    font-size: 0.74rem !important;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  body[data-active-view="store"] #storeView .store-search-marquee-item {
    max-width: min(44vw, 26rem) !important;
  }

  body[data-active-view="store"] #storeView .store-search-marquee-item strong {
    max-width: none !important;
  }
}

/* v3.16 store mobile cart hitbox guard */
@media (max-width: 680px) {
  body[data-active-view="store"] .cart-side-peek,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--empty,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--warning,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--success {
    right: -46px !important;
    left: auto !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    padding: 8px 5px 8px 9px !important;
    overflow: hidden !important;
  }

  body[data-active-view="store"] .cart-side-peek::before {
    inset: 0 !important;
  }

  body[data-active-view="store"] .cart-side-peek.is-subtotal-peek,
  body[data-active-view="store"] .cart-side-peek:hover {
    min-width: 92px !important;
    max-width: 92px !important;
    padding-right: 5px !important;
  }

  body[data-active-view="store"] .cart-side-peek .cart-side-subtotal {
    display: none !important;
    max-width: 0 !important;
    opacity: 0 !important;
  }
}

/* v3.16 mobile click-layer guard: search shell must not block Dicas/assist buttons */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    pointer-events: none !important;
    z-index: 220 !important;
  }

  body[data-active-view="store"] #storeView .store-search-field,
  body[data-active-view="store"] #storeView .store-search-field *,
  body[data-active-view="store"] #storeView .store-sort-field,
  body[data-active-view="store"] #storeView .store-sort-field *,
  body[data-active-view="store"] #storeView .store-search-actions,
  body[data-active-view="store"] #storeView .store-search-actions *,
  body[data-active-view="store"] #storeView .store-search-tool,
  body[data-active-view="store"] #storeView .store-search-tool * {
    pointer-events: auto !important;
  }

  body[data-active-view="store"] .assist-action-dock {
    z-index: 760 !important;
    pointer-events: none !important;
  }

  body[data-active-view="store"] .assist-action-dock button,
  body[data-active-view="store"] .assist-action-dock [role="button"] {
    pointer-events: auto !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) {
    z-index: 1480 !important;
  }

  body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-popover,
  body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-popover *,
  body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-actions button,
  body[data-active-view="store"] .team-nudge.is-store-visible.is-open:not(.is-empty) .team-nudge-qty button {
    pointer-events: auto !important;
  }
}

/* v3.16 mobile critical touch target guard */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  :where(
    .mobile-nav-toggle,
    .mobile-nav-close,
    .nav-close,
    .modal-close,
    .modal-header .icon-button,
    .global-search-close,
    .whatsapp-choice-close,
    .cart-drawer-close,
    .cart-drawer-head .ghost-button,
    .cart-side-peek,
    .assist-action-button,
    .team-nudge-close,
    .team-nudge-actions .compact,
    .team-nudge-actions button,
    .team-nudge-qty button,
    #storeView .store-search-tool,
    #storeView .store-search-clear,
    #storeView #categoryTabs button,
    #storeView .product-card .quantity-stepper-button,
    #storeView .product-card .quantity-stepper-value,
    .cart-item .quantity-stepper-button,
    .cart-item .quantity-stepper-value,
    .checkout-cart-item .quantity-stepper-button,
    .checkout-cart-item .quantity-stepper-value,
    .ghost-button.compact,
    .primary-button.compact
  ) {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  :where(
    .team-nudge-actions .compact,
    .team-nudge-actions button,
    .ghost-button.compact,
    .primary-button.compact,
    #storeView #categoryTabs button
  ) {
    padding-block: max(8px, var(--touch-target-pad-y, 8px)) !important;
  }

  :where(
    .mobile-nav-toggle,
    .mobile-nav-close,
    .nav-close,
    .modal-close,
    .modal-header .icon-button,
    .global-search-close,
    .whatsapp-choice-close,
    .cart-drawer-close,
    .team-nudge-close,
    #storeView .store-search-tool,
    #storeView .store-search-clear,
    #storeView .product-card .quantity-stepper-button,
    .cart-item .quantity-stepper-button,
    .checkout-cart-item .quantity-stepper-button,
    .assist-action-button
  ) {
    width: max(44px, var(--touch-target-size, 44px)) !important;
    height: max(44px, var(--touch-target-size, 44px)) !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  :where(
    .mobile-nav-toggle,
    .mobile-nav-close,
    .nav-close,
    .modal-close,
    .modal-header .icon-button,
    .global-search-close,
    .whatsapp-choice-close,
    .cart-drawer-close,
    .cart-drawer-head .ghost-button,
    .cart-side-peek,
    .assist-action-button,
    .team-nudge-close,
    .team-nudge-actions .compact,
    .team-nudge-actions button,
    .team-nudge-qty button,
    #storeView .store-search-tool,
    #storeView .store-search-clear,
    #storeView #categoryTabs button,
    #storeView .product-card .quantity-stepper-button,
    #storeView .product-card .quantity-stepper-value,
    .cart-item .quantity-stepper-button,
    .cart-item .quantity-stepper-value,
    .checkout-cart-item .quantity-stepper-button,
    .checkout-cart-item .quantity-stepper-value,
    .ghost-button.compact,
    .primary-button.compact
  ) > :where(span, svg, i, img) {
    pointer-events: none !important;
  }
}

/* Final targeted touch-target guard: keep previously short controls at 44px+. */
#accessibilityFontButton,
.topbar-actions #customerAccessButton,
#assistBackToTopButton,
.assist-action-button.top {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: none !important;
  touch-action: manipulation !important;
}

#accessibilityFontButton,
#assistBackToTopButton,
.assist-action-button.top {
  min-width: 44px !important;
  height: 44px !important;
}

@media (max-width: 1100px) {
  body.mobile-nav-open #mainNav .nav-button,
  body.mobile-nav-open .main-nav .nav-button {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: none !important;
    touch-action: manipulation !important;
  }
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  #accessibilityFontButton,
  .topbar-actions #customerAccessButton {
    height: 44px !important;
    min-height: 44px !important;
    max-height: none !important;
  }

  #accessibilityFontButton {
    height: 44px !important;
    min-width: 44px !important;
  }
}

/* Final modal click-outside guard: customer backdrop must receive taps. */
#customerModal:not(.hidden) {
  pointer-events: auto !important;
}

#customerModal .admin-modal-card {
  pointer-events: auto !important;
}

/* Ciclo 3B regressão: keep Dicas mobile usable without heavy repaint/overlap. */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] #teamNudge:not(.is-empty) {
    left: max(12px, env(safe-area-inset-left)) !important;
    right: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    pointer-events: none !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton.team-nudge-button[data-team-nudge-open] {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: clamp(132px, 41vw, 172px) !important;
    min-width: clamp(132px, 41vw, 172px) !important;
    max-width: min(172px, calc(100vw - 132px)) !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding: 8px 12px 8px 8px !important;
    border-radius: 999px !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    transition: border-color 80ms ease, box-shadow 80ms ease !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-avatar {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-copy,
  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-kicker,
  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-copy strong,
  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-copy small {
    max-width: 92px !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-kicker {
    font-size: 0.66rem !important;
    line-height: 1 !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-copy strong {
    font-size: 0.84rem !important;
    line-height: 1.02 !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-copy small {
    font-size: 0.62rem !important;
    line-height: 1.02 !important;
  }

  body[data-active-view="store"] #teamNudge.is-open:not(.is-empty) .team-nudge-popover {
    transition: opacity 80ms ease, transform 90ms cubic-bezier(.2, .9, .22, 1) !important;
  }

  body[data-active-view="store"] #teamNudge.is-open:not(.is-empty) .team-nudge-popover::before,
  body[data-active-view="store"] #teamNudge.is-open:not(.is-empty) .team-nudge-content {
    animation: none !important;
  }
}

/* Ciclo 3B ajuste final: stabilize mobile Dicas and quick cart layers. */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] #teamNudge:not(.is-empty) {
    z-index: 320 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  body[data-active-view="store"] #teamNudge.is-open:not(.is-empty) {
    z-index: 1480 !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton.team-nudge-button[data-team-nudge-open] {
    box-shadow: 0 10px 24px rgba(31, 13, 39, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
    transform: none !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton.team-nudge-button[data-team-nudge-open]::after {
    animation: none !important;
  }

  body[data-active-view="store"] .cart-side-peek,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--empty,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--warning,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--success {
    right: -34px !important;
    left: auto !important;
    z-index: 360 !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 31px 0 9px !important;
    overflow: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    transition: opacity 70ms ease, box-shadow 70ms ease, transform 70ms ease !important;
  }

  body[data-active-view="store"] .cart-side-peek::before {
    inset: 0 !important;
    border-radius: inherit !important;
  }

  body[data-active-view="store"] .cart-side-arrow,
  body[data-active-view="store"] .cart-side-subtotal {
    display: none !important;
  }

  body[data-active-view="store"] .cart-side-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    transform: none !important;
  }

  body[data-active-view="store"] .cart-side-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  body[data-active-view="store"] #cartSideCount {
    top: 6px !important;
    left: 28px !important;
    z-index: 3 !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
  }

  body[data-active-view="store"] .cart-side-preview {
    z-index: 1100 !important;
  }

  body[data-active-view="store"] .cart-drawer {
    z-index: 1200 !important;
  }

  body[data-active-view="store"] .cart-side-preview,
  body[data-active-view="store"] .cart-side-preview-card,
  body[data-active-view="store"] .cart-drawer,
  body[data-active-view="store"] .cart-drawer-scrim,
  body[data-active-view="store"] .cart-drawer-panel {
    transition-duration: 80ms !important;
    transition-delay: 0ms !important;
  }
}

/* Ciclo 3C: mobile assist shortcuts expand when idle and collapse while scrolling. */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] .assist-action-dock {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    z-index: 740 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 7px !important;
    width: auto !important;
    max-width: min(176px, calc(100vw - 22px)) !important;
    pointer-events: none !important;
  }

  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.view-back,
  body[data-active-view="store"] .assist-action-button.undo {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 14px 0 13px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    color: var(--primary) !important;
    font-size: 0.68rem !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
    transition:
      width 224ms ease,
      min-width 224ms ease,
      max-width 224ms ease,
      padding 224ms ease,
      opacity 192ms ease,
      transform 224ms ease,
      box-shadow 192ms ease !important;
  }

  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.top.is-visible {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
  }

  body[data-active-view="store"] .assist-action-button.view-back {
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
  }

  body[data-active-view="store"] .assist-action-button.undo {
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
  }

  body[data-active-view="store"] .assist-action-button.top::before,
  body[data-active-view="store"] .assist-action-button.view-back::before,
  body[data-active-view="store"] .assist-action-button.undo::before {
    display: inline-grid !important;
    place-items: center !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    color: currentColor !important;
    font-size: 0.92rem !important;
    line-height: 1 !important;
  }

  body[data-active-view="store"] .assist-action-button.top::before {
    content: "↑" !important;
  }

  body[data-active-view="store"] .assist-action-button.view-back::before {
    content: "↩" !important;
  }

  body[data-active-view="store"] .assist-action-button.undo::before {
    content: "↺" !important;
  }

  body.is-store-scrolling[data-active-view="store"] .assist-action-dock {
    gap: 6px !important;
  }

  body.is-store-scrolling[data-active-view="store"] .assist-action-button.top,
  body.is-store-scrolling[data-active-view="store"] .assist-action-button.top.is-visible,
  body.is-store-scrolling[data-active-view="store"] .assist-action-button.view-back,
  body.is-store-scrolling[data-active-view="store"] .assist-action-button.undo {
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    border-radius: 999px !important;
    transform: translateX(8px) !important;
  }

  body.is-store-scrolling[data-active-view="store"] .assist-action-button.top::before,
  body.is-store-scrolling[data-active-view="store"] .assist-action-button.view-back::before,
body.is-store-scrolling[data-active-view="store"] .assist-action-button.undo::before {
    color: var(--primary) !important;
    font-size: 1rem !important;
  }
}

/* Ciclo 3E-R: rollback fixed public search layer; keep top area in normal flow. */
@media (max-width: 1100px) {
  body[data-active-view="store"] .topbar {
    position: relative !important;
    z-index: 90 !important;
    overflow: visible !important;
  }

  body[data-active-view="store"] .topbar-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body[data-active-view="store"] .topbar-actions .global-search-trigger {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body[data-active-view="store"] .topbar-actions .whatsapp-button {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body[data-active-view="store"] .topbar-actions #customerAccessButton {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  body[data-active-view="store"] .topbar-actions .accessibility-font-button {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: end !important;
  }

  body[data-active-view="store"] .topbar-actions .whatsapp-button,
  body[data-active-view="store"] .topbar-actions #customerAccessButton {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding-inline: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-active-view="store"] .hero-strip {
    position: relative !important;
    z-index: 20 !important;
    margin-top: 0 !important;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky !important;
    top: max(0px, env(safe-area-inset-top)) !important;
    left: auto !important;
    right: auto !important;
    z-index: 95 !important;
    width: min(calc(100vw - 28px), 1040px) !important;
    max-width: none !important;
    margin: -4px auto 14px !important;
    transform: none !important;
  }

  body[data-active-view="store"] #storeSearchDockAnchor,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeSearchDockAnchor {
    height: 0 !important;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 142px) !important;
    width: min(calc(100vw - 32px), 1040px) !important;
    max-width: none !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] .topbar {
    margin-bottom: 10px !important;
  }

  body[data-active-view="store"] .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px !important;
  }

  body[data-active-view="store"] .topbar-actions .accessibility-font-button {
    grid-column: 3 !important;
    grid-row: 2 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  body[data-active-view="store"] .topbar-actions .whatsapp-button,
  body[data-active-view="store"] .topbar-actions #customerAccessButton {
    min-height: 42px !important;
    border-radius: 13px !important;
    font-size: clamp(0.66rem, 2.8vw, 0.75rem) !important;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky !important;
    top: max(0px, env(safe-area-inset-top)) !important;
    left: auto !important;
    right: auto !important;
    width: min(calc(100vw - 20px), 560px) !important;
    max-width: none !important;
    margin: -2px auto 12px !important;
    transform: none !important;
    border-radius: 22px !important;
  }
}

@media (max-width: 430px) {
  body[data-active-view="store"] .topbar-actions .global-search-trigger {
    min-height: 40px !important;
  }

  body[data-active-view="store"] .topbar-actions .whatsapp-button,
  body[data-active-view="store"] .topbar-actions #customerAccessButton {
    min-height: 40px !important;
    padding-inline: 7px !important;
  }
}

/* Ciclo 3E-Fix: public search stays in light flow before premium; mobile controls keep approved sizes. */
@media (max-width: 1100px) {
  body[data-active-view="store"] #storeSearchDockAnchor,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeSearchDockAnchor {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    z-index: 130 !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 calc(50% - 50vw) 14px !important;
    transform: none !important;
    will-change: auto !important;
    border-radius: 0 !important;
  }

  body[data-active-view="store"] .hero-strip {
    position: relative !important;
    z-index: 20 !important;
    margin-top: 12px !important;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  body[data-active-view="store"] .hero-strip {
    margin-bottom: 18px !important;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    grid-template-columns: minmax(0, 1fr) minmax(128px, 156px) !important;
    width: 100vw !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] .hero-strip {
    margin-top: 10px !important;
    margin-bottom: 12px !important;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    width: 100vw !important;
    margin: 0 calc(50% - 50vw) 12px !important;
    border-radius: 0 !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton.team-nudge-button[data-team-nudge-open] {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    gap: 9px !important;
    width: clamp(132px, 41vw, 172px) !important;
    min-width: clamp(132px, 41vw, 172px) !important;
    max-width: clamp(132px, 41vw, 172px) !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding: 8px 12px 8px 8px !important;
    transform: none !important;
    transition: border-color 80ms ease, box-shadow 80ms ease !important;
  }

  body[data-active-view="store"] #teamNudge:not(.is-empty) #teamNudgeButton .team-nudge-button-avatar {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
  }

  body[data-active-view="store"] .assist-action-button.top,
  body[data-active-view="store"] .assist-action-button.top.is-visible {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  body[data-active-view="store"] .assist-action-button.view-back {
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  body[data-active-view="store"] .assist-action-button.undo {
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  body.is-store-scrolling[data-active-view="store"] .assist-action-button.top,
  body.is-store-scrolling[data-active-view="store"] .assist-action-button.top.is-visible,
  body.is-store-scrolling[data-active-view="store"] .assist-action-button.view-back,
  body.is-store-scrolling[data-active-view="store"] .assist-action-button.undo {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }
}

/* Ciclo Estabilização Máxima: public store mobile/tablet guardrails only. */
@media (max-width: 767px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  body[data-active-view="store"] #storeView .product-card .admin-cost-line,
  body[data-active-view="store"] #storeView .product-card .quick-price-cell--card,
  body[data-active-view="store"] #storeView .product-card [data-quick-manual-price],
  body[data-active-view="store"] #storeView .product-card [data-save-quick-price] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 1100px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky !important;
    top: 0 !important;
    width: 100vw !important;
    margin: 0 calc(50% - 50vw) 14px !important;
    transform: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 20px rgba(31, 13, 39, 0.12) !important;
  }

  body[data-active-view="store"] #storeSearchDockAnchor,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeSearchDockAnchor {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (orientation: portrait) and (max-width: 1023px) {
  body[data-active-view="seller-dashboard"] .content,
  body[data-active-view="whatsapp-sender"] .content,
  body[data-active-view^="admin"] .content,
  body.assisted-order-mode[data-active-view="store"] .content,
  body.assisted-order-mode[data-active-view="cart"] .content {
    position: relative !important;
  }

  body[data-active-view="seller-dashboard"] .content::before,
  body[data-active-view="whatsapp-sender"] .content::before,
  body[data-active-view^="admin"] .content::before,
  body.assisted-order-mode[data-active-view="store"] .content::before,
  body.assisted-order-mode[data-active-view="cart"] .content::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1540;
    background: rgba(20, 8, 30, 0.72);
    pointer-events: auto;
  }

  body[data-active-view="seller-dashboard"] .content::after,
  body[data-active-view="whatsapp-sender"] .content::after,
  body[data-active-view^="admin"] .content::after,
  body.assisted-order-mode[data-active-view="store"] .content::after,
  body.assisted-order-mode[data-active-view="cart"] .content::after {
    content: "Para melhor experiência, use tablet na horizontal ou computador.";
    position: fixed;
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    top: 50%;
    z-index: 1541;
    box-sizing: border-box;
    max-width: 520px;
    margin: 0 auto;
    padding: 22px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(20, 8, 30, 0.28);
    color: var(--ink);
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: auto;
  }
}

/* Functional performance pass: faster operational taps in admin/seller surfaces. */
body[data-active-view^="admin"] .primary-button,
body[data-active-view^="admin"] .ghost-button,
body[data-active-view^="admin"] .compact,
body[data-active-view^="admin"] .nav-button,
body[data-active-view^="admin"] .tab-button,
body[data-active-view^="admin"] .icon-button,
body[data-active-view^="admin"] button[type="button"],
body[data-active-view="seller-dashboard"] .primary-button,
body[data-active-view="seller-dashboard"] .ghost-button,
body[data-active-view="seller-dashboard"] .compact,
body[data-active-view="seller-dashboard"] .nav-button,
body[data-active-view="seller-dashboard"] .tab-button,
body[data-active-view="seller-dashboard"] .icon-button,
body[data-active-view="seller-dashboard"] button[type="button"],
body[data-active-view="whatsapp-sender"] .primary-button,
body[data-active-view="whatsapp-sender"] .ghost-button,
body[data-active-view="whatsapp-sender"] .compact,
body[data-active-view="whatsapp-sender"] .nav-button,
body[data-active-view="whatsapp-sender"] .tab-button,
body[data-active-view="whatsapp-sender"] .icon-button,
body[data-active-view="whatsapp-sender"] button[type="button"],
body.assisted-order-mode[data-active-view="store"] .primary-button,
body.assisted-order-mode[data-active-view="store"] .ghost-button,
body.assisted-order-mode[data-active-view="store"] .compact,
body.assisted-order-mode[data-active-view="store"] .icon-button,
body.assisted-order-mode[data-active-view="store"] button[type="button"],
body.assisted-order-mode[data-active-view="cart"] .primary-button,
body.assisted-order-mode[data-active-view="cart"] .ghost-button,
body.assisted-order-mode[data-active-view="cart"] .compact,
body.assisted-order-mode[data-active-view="cart"] .icon-button,
body.assisted-order-mode[data-active-view="cart"] button[type="button"] {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
  transition-duration: 90ms !important;
  transition-delay: 0ms !important;
}

body[data-active-view^="admin"] .modal-backdrop,
body[data-active-view^="admin"] .drawer,
body[data-active-view^="admin"] .panel,
body[data-active-view="seller-dashboard"] .modal-backdrop,
body[data-active-view="seller-dashboard"] .drawer,
body[data-active-view="seller-dashboard"] .panel,
body[data-active-view="whatsapp-sender"] .modal-backdrop,
body[data-active-view="whatsapp-sender"] .drawer,
body[data-active-view="whatsapp-sender"] .panel {
  transition-duration: 120ms !important;
  transition-delay: 0ms !important;
}

/* Remove somente o bloco intermediário "Versão / Loja" da loja pública. */
@media (max-width: 1100px) {
  body[data-active-view="store"] .topbar > div:first-child,
  body[data-active-view="store"] .topbar-actions .global-search-trigger.access-search-only {
    display: none !important;
  }

  body[data-active-view="store"] .topbar-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
  }

  body[data-active-view="store"] .topbar-actions .whatsapp-button {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body[data-active-view="store"] .topbar-actions #customerAccessButton {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body[data-active-view="store"] .topbar-actions .accessibility-font-button {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
  }
}

/* Busca publica: fluxo natural, sticky leve e cantos arquitetonicos. */
@media (max-width: 1100px) {
  body[data-active-view="store"]:not(.cart-drawer-open) .topbar {
    z-index: 180 !important;
  }

  body[data-active-view="store"]:not(.cart-drawer-open) .topbar-actions,
  body[data-active-view="store"]:not(.cart-drawer-open) .topbar-actions .whatsapp-button,
  body[data-active-view="store"]:not(.cart-drawer-open) .topbar-actions #customerAccessButton,
  body[data-active-view="store"]:not(.cart-drawer-open) .topbar-actions .accessibility-font-button {
    position: relative !important;
    z-index: 181 !important;
    pointer-events: auto !important;
  }

  body[data-active-view="store"] #storeSearchDockAnchor,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeSearchDockAnchor {
    display: block !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: sticky !important;
    top: max(0px, env(safe-area-inset-top)) !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 130 !important;
    width: min(calc(100vw - 24px), 1040px) !important;
    max-width: 100% !important;
    margin: 8px auto 14px !important;
    padding: 8px !important;
    border: 1px solid rgba(var(--primary-rgb), 0.12) !important;
    border-radius: clamp(18px, 2.8vw, 28px) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 235, 0.94)) !important;
    box-shadow: 0 8px 22px rgba(31, 13, 39, 0.11) !important;
    backdrop-filter: none !important;
    transform: none !important;
    will-change: auto !important;
    overflow: visible !important;
  }

  body[data-active-view="store"] #storeView .store-search-field {
    border-radius: clamp(14px, 2.2vw, 20px) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74) !important;
    transform: none !important;
  }

  body[data-active-view="store"] #storeView .store-search-field:focus-within {
    transform: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important;
  }

  body[data-active-view="store"] #storeView .store-search-icon {
    border-radius: 14px !important;
  }

  body[data-active-view="store"] #storeView .store-sort-field select#storeSort {
    border-radius: 16px !important;
  }
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    width: min(calc(100vw - 14px), 560px) !important;
    margin: 6px auto 12px !important;
    padding: 7px !important;
    border-radius: 22px !important;
  }
}

@media (orientation: landscape) and (max-height: 430px) and (max-width: 1100px) {
  body[data-active-view="store"] {
    --store-landscape-topbar-safe: 64px;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    top: max(var(--store-landscape-topbar-safe), env(safe-area-inset-top)) !important;
    width: min(calc(100vw - 16px), 900px) !important;
    margin: 6px auto 10px !important;
    padding: 6px !important;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 132px) !important;
  }
}

@media (orientation: landscape) and (min-width: 820px) and (max-width: 1100px) and (min-height: 431px) {
  body[data-active-view="store"] {
    --store-landscape-topbar-safe: 72px;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    top: max(var(--store-landscape-topbar-safe), env(safe-area-inset-top)) !important;
  }
}

/* Hotfix landscape: celular deitado fica no fluxo; tablet respeita a topbar. */
@media (orientation: landscape) and (max-height: 430px) and (max-width: 1100px) {
  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    position: relative !important;
    top: auto !important;
    z-index: 80 !important;
    margin-top: 10px !important;
  }
}

@media (orientation: landscape) and (min-width: 820px) and (max-width: 1100px) and (min-height: 431px) {
  body[data-active-view="store"] {
    --store-landscape-topbar-safe: 92px;
  }

  body[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock,
  body.store-toolbar-is-fixed[data-active-view="store"] #storeView .catalog-area > .toolbar.store-search-dock {
    top: max(var(--store-landscape-topbar-safe), env(safe-area-inset-top)) !important;
    z-index: 130 !important;
  }
}

/* Cart drawer tab: tablet landscape and desktop only. */
@media (min-width: 820px) and (orientation: landscape) {
  body[data-active-view="store"] {
    --cart-wide-tab-width: clamp(136px, 16vw, 172px);
  }

  body[data-active-view="store"] #storeView .store-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-active-view="store"] #storeView .cart-panel {
    display: none !important;
  }

  body[data-active-view="store"] .cart-side-peek,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--empty,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--warning,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--success {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    z-index: 820 !important;
    width: var(--cart-wide-tab-width) !important;
    min-width: var(--cart-wide-tab-width) !important;
    max-width: var(--cart-wide-tab-width) !important;
    min-height: 68px !important;
    padding: 8px 10px 8px 12px !important;
    overflow: visible !important;
    border-radius: 999px 0 0 999px !important;
    transform: translateY(-50%) !important;
    transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease !important;
  }

  body[data-active-view="store"] .cart-side-peek::before {
    inset: -8px 0 -8px -10px !important;
    border-radius: inherit !important;
  }

  body[data-active-view="store"] .cart-side-arrow {
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 0.88rem !important;
  }

  body[data-active-view="store"] .cart-side-icon {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
  }

  body[data-active-view="store"] #cartSideCount {
    top: 6px !important;
    left: 35px !important;
    z-index: 3 !important;
  }

  body[data-active-view="store"] .cart-side-peek .cart-side-subtotal {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    font-size: clamp(0.72rem, 1.15vw, 0.82rem) !important;
    line-height: 1.05 !important;
    animation: none !important;
  }

  body[data-active-view="store"] .cart-drawer {
    z-index: 780 !important;
  }

  body[data-active-view="store"] .cart-drawer.is-open {
    display: block !important;
  }

  body[data-active-view="store"] .cart-drawer-scrim {
    background: rgba(31, 13, 39, 0.12) !important;
  }

  body[data-active-view="store"] .cart-drawer-panel {
    top: 50% !important;
    right: calc(var(--cart-wide-tab-width) - 2px) !important;
    width: min(430px, calc(100vw - var(--cart-wide-tab-width) - 28px)) !important;
    height: min(640px, calc(100vh - 32px)) !important;
    border-radius: 20px 0 0 20px !important;
    transform: translate(108%, -50%) !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
  }

  body[data-active-view="store"] .cart-drawer.is-open .cart-drawer-panel {
    transform: translate(0, -50%) !important;
  }

  body.cart-drawer-open[data-active-view="store"] {
    overflow: auto !important;
  }
}

/* Unified cart pullout: the public store uses one lateral cart in every viewport. */
body[data-active-view="store"] {
  --cart-pullout-tab-width: clamp(66px, 18vw, 86px);
  --cart-pullout-panel-width: min(86vw, calc(100vw - var(--cart-pullout-tab-width) - 8px));
  --cart-pullout-panel-height: min(540px, calc(100vh - 148px));
  --cart-pullout-handle-top: 52%;
  --cart-pullout-gap: 0px;
}

body[data-active-view="store"] #storeView .store-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-active-view="store"] #storeView .cart-panel {
  display: none !important;
}

body[data-active-view="store"] .cart-side-preview,
body[data-active-view="store"] .cart-side-preview.is-open {
  display: none !important;
  pointer-events: none !important;
}

body[data-active-view="store"] .cart-side-peek,
body[data-active-view="store"] .cart-side-peek.cart-side-peek--empty,
body[data-active-view="store"] .cart-side-peek.cart-side-peek--warning,
body[data-active-view="store"] .cart-side-peek.cart-side-peek--success {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  right: 0 !important;
  left: auto !important;
  top: var(--cart-pullout-handle-top) !important;
  z-index: 1180 !important;
  width: var(--cart-pullout-tab-width) !important;
  min-width: var(--cart-pullout-tab-width) !important;
  max-width: var(--cart-pullout-tab-width) !important;
  min-height: 86px !important;
  padding: 9px 7px 10px !important;
  overflow: visible !important;
  border-radius: 999px 0 0 999px !important;
  transform: translateY(-50%) !important;
  touch-action: pan-y !important;
  transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease !important;
}

body[data-active-view="store"] .cart-side-peek::before {
  inset: -8px 0 -8px -10px !important;
  border-radius: inherit !important;
}

body[data-active-view="store"] .cart-side-arrow {
  display: none !important;
}

body[data-active-view="store"] .cart-side-icon {
  flex: 0 0 auto !important;
  width: clamp(30px, 8vw, 38px) !important;
  height: clamp(30px, 8vw, 38px) !important;
  margin: 0 !important;
}

body[data-active-view="store"] #cartSideCount {
  top: 7px !important;
  left: 9px !important;
  z-index: 3 !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  font-size: 0.66rem !important;
}

body[data-active-view="store"] .cart-side-peek .cart-side-subtotal {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  color: currentColor !important;
  font-size: clamp(0.66rem, 2.3vw, 0.78rem) !important;
  font-weight: 1000 !important;
  line-height: 1.05 !important;
  animation: none !important;
}

body[data-active-view="store"] .cart-drawer {
  display: block !important;
  z-index: 1160 !important;
  pointer-events: none !important;
}

body[data-active-view="store"] .cart-drawer.is-open {
  display: block !important;
  pointer-events: auto !important;
}

body[data-active-view="store"] .cart-drawer-scrim {
  background: transparent !important;
}

body[data-active-view="store"] .cart-drawer-panel {
  position: fixed !important;
  top: var(--cart-pullout-handle-top) !important;
  right: calc(var(--cart-pullout-tab-width) + var(--cart-pullout-gap) - 2px) !important;
  bottom: auto !important;
  left: auto !important;
  width: var(--cart-pullout-panel-width) !important;
  height: var(--cart-pullout-panel-height) !important;
  max-width: var(--cart-pullout-panel-width) !important;
  max-height: var(--cart-pullout-panel-height) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 18px 0 0 18px !important;
  transform: translate(calc(100% + var(--cart-pullout-tab-width) + 12px), -50%) !important;
  touch-action: pan-y !important;
  transition: transform 160ms ease !important;
}

body[data-active-view="store"] .cart-drawer.is-open .cart-drawer-panel {
  transform: translate(0, -50%) !important;
}

body.cart-drawer-open[data-active-view="store"] .cart-side-peek {
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: -8px 10px 24px rgba(31, 13, 39, 0.2) !important;
}

@media (orientation: landscape) and (max-height: 430px) {
  body[data-active-view="store"] {
    --cart-pullout-handle-top: calc(50% + 34px);
    --cart-pullout-panel-height: min(320px, calc(100vh - 88px));
  }
}

@media (min-width: 820px) and (orientation: landscape) {
  body[data-active-view="store"] {
    --cart-pullout-tab-width: clamp(112px, 13vw, 148px);
    --cart-pullout-panel-width: min(520px, calc(100vw - var(--cart-pullout-tab-width) - 24px));
    --cart-pullout-panel-height: min(600px, calc(100vh - 136px));
    --cart-pullout-handle-top: 55%;
  }

  body[data-active-view="store"] .cart-side-peek,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--empty,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--warning,
  body[data-active-view="store"] .cart-side-peek.cart-side-peek--success {
    min-height: 80px !important;
    padding: 10px 10px 11px !important;
  }

  body[data-active-view="store"] .cart-side-peek .cart-side-subtotal {
    font-size: clamp(0.72rem, 1.05vw, 0.82rem) !important;
  }
}
