/* MGBaku preview-coordinated color system for secondary storefront pages.
   Only active if admin selects Premium; classic appearance remains unchanged. */
html[data-mgb-store-style="premium"] {
  --mgb-page-bg: #f8f6f2;
  --mgb-page-surface: #fffdf9;
  --mgb-page-soft: #f3eee6;
  --mgb-page-ink: #34291d;
  --mgb-page-muted: #776b5b;
  --mgb-page-line: #e8dfcf;
  --mgb-page-accent: #d5a34c;
  --mgb-page-accent-hover: #edc777;
  --mgb-page-shadow: 0 16px 42px rgba(95,66,24,.08);
}
html[data-mgb-store-style="premium"][data-theme="dark"] {
  --mgb-page-bg: #13191f;
  --mgb-page-surface: #1c252e;
  --mgb-page-soft: #26313b;
  --mgb-page-ink: #f7f2e9;
  --mgb-page-muted: #c3b7a6;
  --mgb-page-line: #3b4248;
  --mgb-page-accent: #e0b467;
  --mgb-page-accent-hover: #eec783;
  --mgb-page-shadow: 0 18px 48px rgba(0,0,0,.22);
}
html[data-mgb-store-style="premium"] body:not(.pv-live-page) {
  background: var(--mgb-page-bg);
  color: var(--mgb-page-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* Shared customer pages (login, register, verification, account, wishlist). */
html[data-mgb-store-style="premium"] .account-header {
  border-bottom: 1px solid var(--mgb-page-line);
  background: color-mix(in srgb, var(--mgb-page-surface) 96%, transparent);
  box-shadow: 0 8px 30px rgba(95,66,24,.035);
}
html[data-mgb-store-style="premium"] .account-brand { color:var(--mgb-page-ink); letter-spacing:-.025em; }
html[data-mgb-store-style="premium"] .account-nav :is(a,button) {
  background:var(--mgb-page-surface); border-color:var(--mgb-page-line);
  color:var(--mgb-page-ink); border-radius:12px;
}
html[data-mgb-store-style="premium"] :is(.account-card,.wishlist-card,.account-meta-grid article,.account-status-row,.account-dashboard-stats article) {
  background:var(--mgb-page-surface); border-color:var(--mgb-page-line);
  color:var(--mgb-page-ink); box-shadow:var(--mgb-page-shadow); border-radius:18px;
}
html[data-mgb-store-style="premium"] .account-card :is(h1,h2,h3),
html[data-mgb-store-style="premium"] .mgb-auth-form-side h1 { color:var(--mgb-page-ink); }
html[data-mgb-store-style="premium"] :is(.auth-sub,.account-card>p,.account-meta-grid span,.account-section-head p) { color:var(--mgb-page-muted); }
html[data-mgb-store-style="premium"] .account-form label { color:var(--mgb-page-ink); }
html[data-mgb-store-style="premium"] .account-form input:not([type="checkbox"]),
html[data-mgb-store-style="premium"] .account-form textarea,
html[data-mgb-store-style="premium"] .account-form select {
  background:var(--mgb-page-surface); border:1px solid var(--mgb-page-line);
  color:var(--mgb-page-ink); border-radius:12px;
}
html[data-mgb-store-style="premium"] .account-form :is(input,textarea,select):focus-visible {
  outline:3px solid color-mix(in srgb, var(--mgb-page-accent) 32%, transparent);
  border-color:var(--mgb-page-accent);
}
html[data-mgb-store-style="premium"] .account-btn,
html[data-mgb-store-style="premium"] .mgb-auth-submit {
  background:var(--mgb-page-accent)!important; color:#2e220f!important;
  border:1px solid var(--mgb-page-accent); box-shadow:0 12px 26px rgba(174,121,33,.12);
  border-radius:12px;
}
html[data-mgb-store-style="premium"] .account-btn:hover,
html[data-mgb-store-style="premium"] .mgb-auth-submit:hover {
  background:var(--mgb-page-accent-hover)!important;
}
html[data-mgb-store-style="premium"] .account-btn.secondary {
  background:var(--mgb-page-surface)!important; color:var(--mgb-page-ink)!important;
  border-color:var(--mgb-page-line); box-shadow:none;
}
html[data-mgb-store-style="premium"] .mgb-auth-layout {
  background:var(--mgb-page-surface); border:1px solid var(--mgb-page-line);
  box-shadow:var(--mgb-page-shadow); border-radius:23px;
}
html[data-mgb-store-style="premium"] .mgb-auth-visual {
  background: radial-gradient(circle at 89% 12%,rgba(213,163,76,.24),transparent 29%),
    linear-gradient(135deg, var(--mgb-page-soft), var(--mgb-page-surface))!important;
  border-right:1px solid var(--mgb-page-line); color:var(--mgb-page-ink);
}
html[data-mgb-store-style="premium"] .mgb-auth-visual :is(h2,.mgb-auth-visual-top,.mgb-auth-visual-bottom),
html[data-mgb-store-style="premium"] .mgb-auth-visual h2 em {
  color:var(--mgb-page-ink)!important;
}
html[data-mgb-store-style="premium"] .mgb-auth-visual :is(.mgb-auth-kicker,.mgb-auth-star) {
  color:var(--mgb-page-accent)!important;
}
html[data-mgb-store-style="premium"] .mgb-auth-visual-body > p:not(.mgb-auth-kicker) {color:var(--mgb-page-muted)!important}
html[data-mgb-store-style="premium"] .mgb-auth-perks span {
  color:var(--mgb-page-ink); border-color:var(--mgb-page-line);
  background:var(--mgb-page-surface);
}
html[data-mgb-store-style="premium"] .mgb-auth-form-side,
html[data-mgb-store-style="premium"] .mgb-auth-tabs .active { background:var(--mgb-page-surface); }
html[data-mgb-store-style="premium"] .mgb-auth-tabs {
  background:var(--mgb-page-soft); border-color:var(--mgb-page-line);
}
html[data-mgb-store-style="premium"] .mgb-auth-tabs .active {
  color:var(--mgb-page-ink); box-shadow:0 4px 12px rgba(95,66,24,.09);
}
html[data-mgb-store-style="premium"] .mgb-auth-form input,
html[data-mgb-store-style="premium"] .mgb-auth-form input:focus {
  background:var(--mgb-page-surface); color:var(--mgb-page-ink);
  border-color:var(--mgb-page-line);
}
html[data-mgb-store-style="premium"] .mgb-auth-form input:focus {border-color:var(--mgb-page-accent)}
html[data-mgb-store-style="premium"] .mgb-auth-eyebrow,
html[data-mgb-store-style="premium"] .mgb-auth-support a,
html[data-mgb-store-style="premium"] .mgb-auth-bottom-note a { color:#ac7b2e!important; }
/* Product details and SEO catalog category pages. */
html[data-mgb-store-style="premium"] :is(.seo-header,.product-site-header,.faq-header) {
  background:var(--mgb-page-surface); border-bottom:1px solid var(--mgb-page-line);
  box-shadow:0 6px 24px rgba(95,66,24,.035);
}
html[data-mgb-store-style="premium"] :is(.seo-hero,.seo-hero-panel,.seo-product-card,.seo-product-gallery,.seo-product-info,.seo-product-image,.faq-hero,.faq-group,.faq-item,.faq-help) {
  background:var(--mgb-page-surface); border-color:var(--mgb-page-line);
  color:var(--mgb-page-ink); box-shadow:var(--mgb-page-shadow);
}
html[data-mgb-store-style="premium"] :is(.seo-hero,.seo-hero-panel,.faq-hero) {
  background:radial-gradient(circle at 89% 12%,rgba(213,163,76,.17),transparent 30%),var(--mgb-page-surface);
}
html[data-mgb-store-style="premium"] :is(.seo-product-link,.seo-buy,.seo-product-card .seo-product-link,.faq-home,.seo-theme-btn,.product-site-header .back-store) {
  border-radius:12px; border-color:var(--mgb-page-line);
}
html[data-mgb-store-style="premium"] :is(.seo-product-link,.seo-buy) {
  background:var(--mgb-page-accent); color:#2e220f; border:1px solid var(--mgb-page-accent);
}
html[data-mgb-store-style="premium"] :is(.seo-product-link,.seo-buy):hover {background:var(--mgb-page-accent-hover)}
html[data-mgb-store-style="premium"] :is(.seo-breadcrumbs,.seo-product-meta,.seo-hero-stats,.seo-product-kicker,.faq-hero p) {color:var(--mgb-page-muted)}
/* Static customer-facing tools and legal pages already load /store-style.js.php. */
html[data-mgb-store-style="premium"] :is(.pc-header,.repair-header,.track-header,.legal-header,.privacy-header) {
  background:var(--mgb-page-surface); border-bottom:1px solid var(--mgb-page-line);
}
html[data-mgb-store-style="premium"] :is(.builder-hero,.repair-intro,.track-hero,.legal-hero,.privacy-hero) {
  background:radial-gradient(circle at 90% 15%,rgba(213,163,76,.12),transparent 28%),var(--mgb-page-bg);
  color:var(--mgb-page-ink);
}
html[data-mgb-store-style="premium"] :is(.builder-card,.status-card,.repair-card,.track-search-card,.track-card,.bottom-help-card,.legal-card,.privacy-card,.legal-toc,.privacy-toc) {
  background:var(--mgb-page-surface); border-color:var(--mgb-page-line);
  box-shadow:var(--mgb-page-shadow); border-radius:18px;
}
html[data-mgb-store-style="premium"] :is(.primary-btn,.repair-submit,.track-submit,.btn.primary) {
  background:var(--mgb-page-accent)!important; color:#2e220f!important;
  border:1px solid var(--mgb-page-accent)!important; border-radius:12px;
}
/* Keep locale selection legible even in warm/light premium headers. */
html[data-mgb-store-style="premium"] .mgb-lang-picker {
  background:var(--mgb-page-soft); border-color:var(--mgb-page-line);
  box-shadow:none;
}
html[data-mgb-store-style="premium"] .mgb-lang-picker button[aria-pressed="true"] {
  background:var(--mgb-page-accent)!important; color:#2e220f!important;
}
@media(max-width:700px) {
  html[data-mgb-store-style="premium"] .mgb-auth-layout {border-radius:18px}
  html[data-mgb-store-style="premium"] .mgb-auth-visual {border-right:0;border-bottom:1px solid var(--mgb-page-line)}
}
