/* Shared Yavi marketplace palette, matched to the orange and warm neutrals on Home. */
:root {
  color-scheme: light;
  --ink:#1e1c1b; --muted-ink:#625b56; --line:#ebe5e0; --surface:#fff;
  --canvas:#f8f6f4; --accent:#f26a21; --accent-soft:#fff0e6; --accent-dark:#dc5410;
  --primary:#f26a21; --primary-dark:#dc5410; --primary-light:#fff0e6;
  --text-main:#1e1c1b; --text-muted:#625b56; --bg-body:#fff; --bg-surface:#fff;
  --bg-subtle:#f8f6f4; --border-subtle:#ebe5e0; --border-strong:#d8cec6;
}
html[data-theme="dark"] {
  color-scheme:dark;
  --ink:#f5f1ee; --muted-ink:#c6bbb3; --line:#39312d; --surface:#201b19;
  --canvas:#171413; --accent:#ff8245; --accent-soft:#39271d; --accent-dark:#ffa375;
  --primary:#f26a21; --primary-dark:#dc5410; --primary-light:#39271d;
  --text-main:#f5f1ee; --text-muted:#c6bbb3; --bg-body:#131111; --bg-surface:#201b19;
  --bg-subtle:#28211e; --border-subtle:#39312d; --border-strong:#51443c;
}
html body { color:var(--ink); background:var(--surface); font-family:Poppins,Inter,Arial,sans-serif; }
html body :is(h1,h2,h3,h4,h5,strong) { color:var(--ink); }
html body a:hover { color:var(--accent-dark); }

/* Shared shell and navigation */
html body .site-header { background:#fff; border-color:var(--line); color:var(--ink); }
html body .wordmark>span { color:var(--ink); }
html body .wordmark .wordmark-light { color:var(--accent); }
html body .wordmark small, html body .eyebrow, html body .muted { color:var(--muted-ink); }
html body .primary-nav>a, html body .track-link, html body .text-link { color:#514b47; }
html body .primary-nav>a.active { color:var(--accent-dark); border-color:var(--accent); }
html body .nav-new { color:#b7470c; background:var(--accent-soft); }
html body .global-search, html body .catalog-search, html body .search-box { background:#f7f5f3; border-color:var(--line); }
html body .global-search input, html body .catalog-search input { color:var(--ink); }
html body .header-actions .icon-button, html body .mobile-menu-toggle { color:var(--ink); }
html body .header-actions .icon-button:hover { background:var(--accent-soft); color:var(--accent-dark); }
html body .button-dark, html body .btn-primary, html body .header-create, html body .mobile-create-pill,
html body .home-search-submit { color:#fff; background:var(--accent); border-color:var(--accent); }
html body .button-dark:hover, html body .btn-primary:hover, html body .header-create:hover,
html body .mobile-create-pill:hover, html body .home-search-submit:hover { color:#fff; background:var(--accent-dark); border-color:var(--accent-dark); }
html body .button-outline, html body .btn-secondary, html body .desktop-theme-toggle { color:var(--ink); border-color:var(--line); background:var(--canvas); }

/* Store, product, maker, account and information surfaces */
html body .page-wrap, html body .container, html body .discovery-page { color:var(--ink); }
html body .page-title p, html body .detail-info>p, html body .detail-note, html body .discovery-intro,
html body .maker-byline, html body .product-author, html body .product-description,
html body .starting-price>span, html body .starting-price small, html body .viewer-benefits p,
html body .tracking-card p, html body .tracking-card li { color:var(--muted-ink); }
html body .category-pill, html body .catalog-category-row button, html body .category-chip,
html body .product-angle-bar button { color:#625b56; background:#fff; border-color:var(--line); }
html body .category-pill:hover, html body .catalog-category-row button:hover, html body .category-chip:hover,
html body .product-angle-bar button:hover { border-color:#f3a579; color:#bb4a10; background:#fff6f0; }
html body .catalog-category-row button.active, html body .category-chip.active,
html body .feed-tabs button.active:after, html body .home-product-tabs button.active { color:#fff; background:var(--accent); border-color:var(--accent); }
html body .feed-tabs button.active { color:var(--accent-dark); }
html body .featured-live { background:radial-gradient(ellipse at 64% 47%,#fff1e7 0%,#f8dfcf 48%,#eee7e1 100%); }
html body .featured-live-copy .eyebrow { color:#75442b; }
html body .feature-ribbon, html body .model-preview-badge, html body .product-category { color:#a7430d; background:#fff0e6; }
html body .category-pill, html body .platform-tools>a, html body .filter-panel, html body .product-viewer-block,
html body .product-buy-panel, html body .community-callout, html body .platform-feed .design-card,
html body .model-card, html body .tracking-card, html body .checkout-panel, html body .order-success,
html body .empty-state, html body .detail-info, html body .studio-panel, html body .account-panel {
  border-color:var(--line);
}
html body .platform-tools>a, html body .product-buy-panel, html body .checkout-panel,
html body .tracking-card, html body .order-success, html body .detail-info, html body .studio-panel,
html body .account-panel, html body .filter-panel { background:var(--surface); }
html body .community-callout { background:#fff4ec; }
html body .tool-icon, html body .tool-icon.purple, html body .viewer-mode-switch button.active,
html body .product-angle-bar button.active, html body .product-angle-bar .autorotate-toggle[aria-pressed=true] {
  color:#b7470c; background:var(--accent-soft); border-color:#f6c5a7;
}
html body .model-avatar, html body .author-avatar { color:#b7470c; background:#fff0e6; }
html body .verified-mark, html body .product-save.saved { color:var(--accent-dark); }
html body .product-viewer-stage { background:radial-gradient(ellipse at 50% 45%,#fff 0,#faf6f2 58%,#eee8e2 100%); }
html body .product-viewer-top, html body .product-angle-bar { background:#fff; border-color:var(--line); }
html body .viewer-loading { background:#faf6f2e8; color:#625b56; }
html body .viewer-loading>span { border-color:#f4d2bd; border-top-color:var(--accent); }
html body .product-angle-bar button.active { color:#b7470c; }
html body input, html body select, html body textarea { color:var(--ink); border-color:var(--line); }
html body input[type="range"], html body input[type="checkbox"], html body input[type="radio"] { accent-color:var(--accent); }
html body .site-footer { color:var(--muted-ink); border-color:var(--line); }

/* Warm charcoal dark mode. Keep semantic form errors red for clarity. */
html[data-theme="dark"] body { color:#f5f1ee!important; background:#131111!important; }
html[data-theme="dark"] body :is(h1,h2,h3,h4,h5,strong) { color:#f5f1ee!important; }
html[data-theme="dark"] body .site-header { background:#181514!important; border-color:#39312d!important; }
html[data-theme="dark"] body .wordmark>span, html[data-theme="dark"] body .header-actions .icon-button,
html[data-theme="dark"] body .mobile-menu-toggle { color:#f5f1ee!important; }
html[data-theme="dark"] body .wordmark .wordmark-light { color:#ff8245!important; }
html[data-theme="dark"] body .wordmark small, html[data-theme="dark"] body .eyebrow,
html[data-theme="dark"] body .muted, html[data-theme="dark"] body .page-title p,
html[data-theme="dark"] body .detail-info>p, html[data-theme="dark"] body .detail-note,
html[data-theme="dark"] body .discovery-intro, html[data-theme="dark"] body .maker-byline,
html[data-theme="dark"] body .product-author, html[data-theme="dark"] body .product-description,
html[data-theme="dark"] body .starting-price>span, html[data-theme="dark"] body .starting-price small,
html[data-theme="dark"] body .viewer-benefits p, html[data-theme="dark"] body .tracking-card p,
html[data-theme="dark"] body .tracking-card li { color:#c6bbb3!important; }
html[data-theme="dark"] body .primary-nav>a, html[data-theme="dark"] body .track-link,
html[data-theme="dark"] body .text-link { color:#e4dcd6!important; }
html[data-theme="dark"] body .primary-nav>a.active { color:#ff9a66!important; border-color:#f26a21!important; }
html[data-theme="dark"] body .global-search, html[data-theme="dark"] body .catalog-search,
html[data-theme="dark"] body .search-box, html[data-theme="dark"] body input,
html[data-theme="dark"] body select, html[data-theme="dark"] body textarea {
  color:#f5f1ee!important; background:#28211e!important; border-color:#51443c!important;
}
html[data-theme="dark"] body input::placeholder, html[data-theme="dark"] body textarea::placeholder { color:#b9aaa0!important; opacity:1; }
html[data-theme="dark"] body .button-outline, html[data-theme="dark"] body .btn-secondary,
html[data-theme="dark"] body .desktop-theme-toggle { color:#f5f1ee!important; background:#28211e!important; border-color:#51443c!important; }
html[data-theme="dark"] body .category-pill, html[data-theme="dark"] body .catalog-category-row button,
html[data-theme="dark"] body .category-chip, html[data-theme="dark"] body .product-angle-bar button {
  color:#ded4cd!important; background:#201b19!important; border-color:#51443c!important;
}
html[data-theme="dark"] body .category-pill:hover, html[data-theme="dark"] body .catalog-category-row button:hover,
html[data-theme="dark"] body .category-chip:hover { color:#ffad82!important; background:#39271d!important; border-color:#8c5235!important; }
html[data-theme="dark"] body .catalog-category-row button.active, html[data-theme="dark"] body .category-chip.active,
html[data-theme="dark"] body .home-product-tabs button.active { color:#fff!important; background:#f26a21!important; border-color:#f26a21!important; }
html[data-theme="dark"] body .platform-tools>a, html[data-theme="dark"] body .product-buy-panel,
html[data-theme="dark"] body .checkout-panel, html[data-theme="dark"] body .tracking-card,
html[data-theme="dark"] body .order-success, html[data-theme="dark"] body .detail-info,
html[data-theme="dark"] body .studio-panel, html[data-theme="dark"] body .account-panel,
html[data-theme="dark"] body .filter-panel, html[data-theme="dark"] body .platform-feed .design-card,
html[data-theme="dark"] body .category-pill, html[data-theme="dark"] body .empty-state {
  color:#f5f1ee!important; background:#201b19!important; border-color:#39312d!important;
}
html[data-theme="dark"] body .community-callout { color:#f5f1ee!important; background:#30231c!important; border-color:#514035!important; }
html[data-theme="dark"] body .featured-live { background:radial-gradient(ellipse at 64% 47%,#513a2e 0%,#382820 50%,#211b18 100%); }
html[data-theme="dark"] body .featured-live-copy .eyebrow { color:#f2c4a7!important; }
html[data-theme="dark"] body .feature-ribbon, html[data-theme="dark"] body .model-preview-badge,
html[data-theme="dark"] body .product-category { color:#ffad82!important; background:#39271d!important; border-color:#60402f!important; }
html[data-theme="dark"] body .tool-icon, html[data-theme="dark"] body .tool-icon.purple,
html[data-theme="dark"] body .viewer-mode-switch button.active,
html[data-theme="dark"] body .product-angle-bar button.active,
html[data-theme="dark"] body .product-angle-bar .autorotate-toggle[aria-pressed=true] {
  color:#ffad82!important; background:#39271d!important; border-color:#60402f!important;
}
html[data-theme="dark"] body .model-avatar, html[data-theme="dark"] body .author-avatar { color:#ffad82!important; background:#39271d!important; }
html[data-theme="dark"] body .product-viewer-block, html[data-theme="dark"] body .product-viewer-top,
html[data-theme="dark"] body .product-angle-bar { color:#f5f1ee!important; background:#201b19!important; border-color:#39312d!important; }
html[data-theme="dark"] body .product-viewer-stage { background:radial-gradient(ellipse at 50% 45%,#302925 0,#211b18 58%,#171311 100%)!important; }
html[data-theme="dark"] body .viewer-tools button { color:#eee4dc!important; background:#302824ed!important; border-color:#51443c!important; }
html[data-theme="dark"] body .product-drag-hint { color:#ded4cd!important; background:#302824e8!important; }
html[data-theme="dark"] body .viewer-loading { color:#ded4cd!important; background:#201b19df!important; }
html[data-theme="dark"] body .site-footer { color:#c6bbb3!important; background:#181514!important; border-color:#39312d!important; }
html[data-theme="dark"] body .site-footer a { color:#e4dcd6!important; }
html[data-theme="dark"] body #checkoutError:not([hidden]) { color:#ffd1d3!important; background:#351d23!important; border-color:#82434b!important; }
html[data-theme="dark"] body .form-error, html[data-theme="dark"] body #trackingResult .form-error { color:#ff9999!important; }
html[data-theme="dark"] body .order-success .success-mark { color:#b7e6c6!important; background:#20352a!important; }

/* 3D print studio has legacy fixed green and navy surfaces; explicitly theme each panel. */
html body[data-page="3d-prints"] .prints-gallery-header {
  color:#fff!important;
  background:linear-gradient(115deg,#b83f12 0%,#e45b19 58%,#f26a21 100%)!important;
  border:1px solid #d95318!important;
}
html body[data-page="3d-prints"] .prints-gallery-header h1 { color:#fff!important; }
html body[data-page="3d-prints"] .prints-gallery-header p { color:#fff1e8!important; }
html body[data-page="3d-prints"] .prints-gallery-header .badge { color:#8d350e!important; background:#fff4ec!important; }
html body[data-page="3d-prints"] .prints-gallery-header .btn-primary { color:#a33d10!important; background:#fff!important; border-color:#fff!important; }
html body[data-page="3d-prints"] .studio-viewport-card,
html body[data-page="3d-prints"] .studio-controls-sidebar {
  color:#1e1c1b!important; background:#fff!important; border:1px solid #ebe5e0!important;
}
html body[data-page="3d-prints"] .studio-stage-box,
html body[data-page="3d-prints"] .studio-flat-proof-view {
  background:radial-gradient(ellipse at 50% 42%,#fff 0%,#fbf7f3 62%,#f2ece6 100%)!important;
  border-color:#ebe5e0!important;
}
html body[data-page="3d-prints"] .studio-controls-sidebar :is(.control-section-title,label,strong),
html body[data-page="3d-prints"] .studio-viewport-card>div:not(.studio-stage-box) { color:#292522!important; }
html body[data-page="3d-prints"] .studio-controls-sidebar .control-section { border-color:#ebe5e0!important; }
html body[data-page="3d-prints"] .studio-controls-sidebar .chip-btn { color:#625b56; border-color:#ebe5e0; background:#fff; }
html body[data-page="3d-prints"] .studio-controls-sidebar .chip-btn.active { color:#b7470c; border-color:#f3a579; background:#fff0e6; }
html body[data-page="3d-prints"] .studio-price-summary { border-color:#ebe5e0!important; }

html[data-theme="dark"] body[data-page="3d-prints"] .prints-gallery-header {
  background:linear-gradient(115deg,#8f310f 0%,#bd4513 58%,#dc5410 100%)!important;
  border-color:#a53e15!important;
}
html[data-theme="dark"] body[data-page="3d-prints"] .studio-viewport-card,
html[data-theme="dark"] body[data-page="3d-prints"] .studio-controls-sidebar {
  color:#f5f1ee!important; background:#201b19!important; border-color:#39312d!important;
}
html[data-theme="dark"] body[data-page="3d-prints"] .studio-stage-box,
html[data-theme="dark"] body[data-page="3d-prints"] .studio-flat-proof-view {
  background:radial-gradient(ellipse at 50% 42%,#302925 0%,#211b18 62%,#171311 100%)!important;
  border-color:#39312d!important;
}
html[data-theme="dark"] body[data-page="3d-prints"] .studio-controls-sidebar :is(.control-section-title,label,strong),
html[data-theme="dark"] body[data-page="3d-prints"] .studio-viewport-card>div:not(.studio-stage-box) { color:#f5f1ee!important; }
html[data-theme="dark"] body[data-page="3d-prints"] .studio-controls-sidebar .chip-btn { color:#ded4cd!important; border-color:#51443c!important; background:#28211e!important; }
html[data-theme="dark"] body[data-page="3d-prints"] .studio-controls-sidebar .chip-btn.active { color:#ffad82!important; border-color:#8c5235!important; background:#39271d!important; }
html[data-theme="dark"] body[data-page="3d-prints"] .studio-price-summary { border-color:#39312d!important; }

/* Keep the COD choice readable against the dark checkout card. */
html[data-theme="dark"] body[data-page="cart"] .checkout-panel .payment-choice {
  color:#f5f1ee!important; background:#28211e!important; border-color:#51443c!important;
}
html[data-theme="dark"] body[data-page="cart"] .checkout-panel .payment-choice strong {
  color:#fff8f3!important;
}
html[data-theme="dark"] body[data-page="cart"] .checkout-panel .payment-choice p {
  color:#d5c9c0!important;
}
html[data-theme="dark"] body[data-page="cart"] .checkout-panel .payment-choice>[data-icon] {
  color:#ff9a66!important;
}
html[data-theme="dark"] body[data-page="cart"] .checkout-panel .payment-choice input[type="radio"] {
  accent-color:#ff8245!important;
}

@media (prefers-reduced-motion:reduce) {
  html body *, html body *::before, html body *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; }
}
