/* ux-polish-r95.css — Full-Site Motion, Button Hierarchy, Contrast, Small-UI & Layout Rhythm Polish
   Covers BOTH Storefront (dark + light) and Admin Console (dark + light).
   Loads last to harmonize r26–r94 + base styles cleanly without breaking existing selectors. */

/* =====================================================================
   1. MOTION SYSTEM & ZERO-POP SCROLL EXPERIENCE
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Eliminate jarring scroll-reveal pop-in from ux-polish-r77.css:
   Cards must always be visible immediately as the user scrolls. */
.pp-storefront .pp-product-card,
.pp-storefront .pp-product-card.pp-reveal-seen,
.pp-storefront .pp-blog-card,
.pp-storefront .pp-category-card,
.pp-storefront .cat-tile,
.pp-storefront .tech-card {
  opacity: 1 !important;
  transform: none;
  transition:
    transform .22s cubic-bezier(.22, 1, .36, 1),
    border-color .2s ease,
    box-shadow .22s ease !important;
}

.pp-storefront .pp-product-card:hover,
.pp-storefront .pp-product-card:focus-within {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb, var(--accent2) 72%, var(--line));
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24), 0 0 0 1px rgba(255, 122, 26, .16);
}
.pp-storefront[data-mode="light"] .pp-product-card:hover,
.pp-storefront[data-mode="light"] .pp-product-card:focus-within {
  box-shadow: 0 12px 26px rgba(15, 23, 42, .09), 0 0 0 1px rgba(255, 122, 26, .22);
}

/* Crisp, restrained micro-interactions instead of sluggish 1.6s/0.65s durations */
.pp-storefront .pp-slide {
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1) !important;
}
.pp-storefront .pp-slide-arrow {
  transition: opacity .2s ease, background-color .2s ease;
}
.pp-storefront .pp-slide-dots button {
  transition: width .25s cubic-bezier(.22, 1, .36, 1), background-color .2s ease;
}
.pp-storefront .pp-product-picture img {
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.pp-storefront .pp-product-card:hover .pp-product-picture img {
  transform: scale(1.045);
}
.pp-storefront .pp-product-wishlist,
.pp-storefront .pp-product-actions {
  transition: opacity .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1), background-color .18s ease;
}
.pp-storefront .pp-feature-icon,
.pp-storefront .pp-cat-circle,
.pp-storefront .pp-action-icon {
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}
.pp-storefront .pp-category-card:hover .pp-cat-circle {
  transform: translateY(-2px);
}
.pp-storefront .pp-blog-card:hover,
.pp-storefront .tech-card:hover,
.pp-storefront .cat-tile:hover {
  transform: translateY(-3px);
}
.pp-storefront .pdp-tab-panel {
  animation-duration: .18s;
}
.admin-wrap .admin-page.active {
  animation: ppAdminPageIn .16s cubic-bezier(.22, 1, .36, 1);
}
.admin-wrap .r84-tab-pane.is-active {
  animation: ppAdminPageIn .14s ease-out;
}
@keyframes ppAdminPageIn {
  from { opacity: .88; transform: translateY(2px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   2. STOREFRONT TOKENS, TYPOGRAPHY & VISUAL POLISH
   ===================================================================== */
.pp-storefront {
  --accent: #ff4733;
  --accent2: #ff7a1a;
  --accent-dark: #d9361f;
  --success: var(--ok);
  --warning: var(--warn);
  --info: #60a5fa;
  --gradient: linear-gradient(135deg, #ff4733 0%, #ff7a1a 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .18);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
.pp-storefront[data-mode="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --white: #ffffff;
  --surface-2: #eff2f7;
  --ink: #111827;
  --muted: #5b6475;
  --line: #e2e6ef;
  --line-dark: #cfd6e3;
  --info: #2563eb;
  --shadow: 0 8px 26px rgba(15, 23, 42, .07);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .04);
}

.pp-storefront :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent2) 85%, transparent);
  outline-offset: 2px;
}

/* Header & Navigation Refinement */
.pp-storefront .pp-header-inner {
  padding-block: 13px !important;
}
.pp-storefront .pp-search input {
  height: 42px;
  font-size: 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.pp-storefront .pp-search input:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 18%, transparent);
}
.pp-storefront .pp-search button {
  width: 48px;
  border-radius: 0 9px 9px 0;
  transition: filter .18s ease;
}
.pp-storefront .pp-search button:hover {
  filter: brightness(1.08);
}
.pp-storefront .pp-mode {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease;
}
.pp-storefront .pp-mode:hover {
  background: var(--surface-2);
  border-color: var(--line);
}
.pp-storefront .pp-action-label {
  font-size: 11px;
  line-height: 1.4;
}
.pp-storefront .pp-action-label strong {
  font-size: 12px;
}
.pp-storefront .pp-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  box-shadow: 0 0 0 2px var(--surface);
}
.pp-storefront .pp-all-categories {
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 13px;
  transition: filter .18s ease, transform .18s ease;
}
.pp-storefront .pp-all-categories:hover {
  filter: brightness(1.07);
}
.pp-storefront .pp-nav-links > a {
  font-size: 13px;
  font-weight: 550;
  transition: color .16s ease;
}
.pp-storefront .pp-category-dropdown {
  border-radius: 0 0 12px 12px;
  padding: 6px;
}
.pp-storefront .pp-category-dropdown a {
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  transition: background-color .15s ease, color .15s ease;
}

/* Container, Margins & Page Rhythm */
.pp-storefront .pp-main {
  padding: 0 0 52px;
}
.pp-storefront .pp-content {
  padding-top: 22px !important;
}
.pp-storefront .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}
.pp-storefront .breadcrumb a:hover {
  color: var(--accent2);
}
.pp-storefront .page-head {
  margin: 4px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pp-storefront .page-head h1 {
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
}
.pp-storefront .page-head p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.pp-storefront .page-head .btn,
.pp-storefront .page-head .pp-od-actions {
  margin-top: 12px;
}

/* Home Sections & Readable Storefront Scale */
.pp-storefront .pp-hero-grid {
  margin-bottom: 28px;
  gap: 16px;
}
.pp-storefront .pp-hero-categories a {
  font-size: 12px;
  padding: 7.5px 13px;
}
.pp-storefront .pp-side-banner p {
  font-size: 12.5px;
}
.pp-storefront .pp-features {
  gap: 14px;
  margin: 0 0 40px;
}
.pp-storefront .pp-feature {
  padding: 15px 14px;
  border-radius: 12px;
  transition: border-color .2s ease;
}
.pp-storefront .pp-feature:hover {
  border-color: color-mix(in srgb, var(--accent2) 45%, var(--line));
}
.pp-storefront .pp-feature strong {
  font-size: 12.5px;
  font-weight: 650;
}
.pp-storefront .pp-feature small {
  font-size: 11.5px;
}
.pp-storefront .pp-section {
  margin-bottom: 44px;
}
.pp-storefront .pp-section-head {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.pp-storefront .pp-section-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pp-storefront .pp-section-head h2::before {
  display: none;
}
.pp-storefront .pp-section-head > a {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent2);
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent2) 10%, transparent);
  transition: background-color .16s ease, color .16s ease;
}
.pp-storefront .pp-section-head > a:hover {
  background: color-mix(in srgb, var(--accent2) 18%, transparent);
  text-decoration: none;
}
.pp-storefront .pp-category-card {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink);
}
.pp-storefront .pp-cat-circle {
  margin-bottom: 10px;
}

/* Product Cards Refinement */
.pp-storefront .pp-product-media {
  padding: 16px;
}
.pp-storefront .pp-product-badges span {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: .04em;
}
.pp-storefront .pp-add-cart {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 9px 10px;
  border-radius: 7px;
  letter-spacing: .02em;
  transition: filter .16s ease;
}
.pp-storefront .pp-add-cart:hover:not(:disabled) {
  filter: brightness(1.08);
}
.pp-storefront .pp-quick-icon {
  width: 33px;
  flex: 0 0 33px;
  border-radius: 7px;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.pp-storefront .pp-product-info {
  padding: 15px 16px 16px;
}
.pp-storefront .pp-product-category {
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--accent2);
  margin-bottom: 5px;
}
.pp-storefront .pp-product-info h3 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  min-height: 39px;
  height: auto;
  margin: 0 0 8px;
}
.pp-storefront .pp-product-stock {
  font-size: 11.5px;
  font-weight: 600;
  margin: 0 0 10px;
}
.pp-storefront .pp-product-price strong {
  font-size: 17.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent2);
}
.pp-storefront[data-mode="light"] .pp-product-price strong {
  color: var(--accent-dark);
}
.pp-storefront .pp-product-price del {
  font-size: 12px;
}
.pp-storefront .pp-product-price small {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.pp-storefront .pp-category-banners {
  margin: 40px 0;
  gap: 16px;
}
.pp-storefront .pp-category-banner small {
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pp-storefront .pp-blog-card small {
  font-size: 10.5px;
}
.pp-storefront .pp-blog-card h3 {
  font-size: 15px;
  line-height: 1.45;
}
.pp-storefront .pp-blog-card span {
  font-size: 12.5px;
}
.pp-storefront .pp-newsletter {
  margin: 44px 0 0;
  padding: 28px 32px;
  border-radius: 14px;
}
.pp-storefront .pp-newsletter p {
  font-size: 13px;
}
.pp-storefront .pp-footer {
  padding: 50px 0 0;
}
.pp-storefront .pp-footer p {
  font-size: 13px;
}
.pp-storefront .pp-footer-grid > div > a:not(.pp-footer-brand),
.pp-storefront .pp-footer button {
  font-size: 12.5px;
  margin-bottom: 11px;
}
.pp-storefront .pp-payment-tags span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
}
.pp-storefront .pp-footer-bottom {
  font-size: 11.5px;
  padding: 20px 0;
}

/* =====================================================================
   3. UNIFIED BUTTON SYSTEM — STOREFRONT & ADMIN
   ===================================================================== */
/* Storefront Buttons */
.pp-storefront .btn {
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.25;
  gap: 7px;
  border: 1px solid transparent;
  background: var(--gradient);
  color: #fff;
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.pp-storefront .btn:hover:not(:disabled) {
  background: var(--gradient);
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 88, 36, .28);
}
.pp-storefront .btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}
.pp-storefront .btn.sm {
  min-height: 33px;
  padding: 6px 13px;
  font-size: .8rem;
  border-radius: 7px;
}
.pp-storefront .btn.secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line-dark);
  box-shadow: none;
}
.pp-storefront .btn.secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent2) 10%, var(--surface-2));
  border-color: var(--accent2);
  color: var(--accent2);
  filter: none;
  box-shadow: none;
}
.pp-storefront .btn.danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.pp-storefront .btn.danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
  filter: none;
  box-shadow: 0 6px 16px rgba(220, 38, 38, .28);
}
.pp-storefront .btn.pp-btn-danger-outline {
  background: rgba(239, 68, 68, .08);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, .42);
}
.pp-storefront[data-mode="light"] .btn.pp-btn-danger-outline {
  background: rgba(220, 38, 38, .05);
  color: #dc2626;
  border-color: rgba(220, 38, 38, .42);
}
.pp-storefront .btn.pp-btn-danger-outline:hover:not(:disabled) {
  background: rgba(239, 68, 68, .16);
  border-color: #ef4444;
  filter: none;
  box-shadow: none;
}
.pp-storefront .pp-cta {
  padding: 11px 22px;
  font-size: 13px;
  border-radius: 999px;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.pp-storefront .pp-cta:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 18px rgba(255, 88, 36, .3);
}
.pp-storefront .pp-cta.small {
  font-size: 11.5px;
  padding: 8px 16px;
}

/* Admin Buttons — fixes base .btn:hover turning primary buttons dark navy (#22355a)! */
.admin-wrap .btn:not(.secondary):not(.ghost):not(.danger):not(.pp-btn-danger-outline),
.admin-wrap .btn.accent,
.admin-wrap .pp-r86-btn.primary,
.admin-wrap .theme-publish {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
  gap: 6px;
  background: var(--accent, #ff741f);
  border: 1px solid var(--accent, #ff741f);
  color: #ffffff;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .14s ease;
}
.admin-wrap .btn:not(.secondary):not(.ghost):not(.danger):not(.pp-btn-danger-outline):hover:not(:disabled),
.admin-wrap .btn.accent:hover:not(:disabled),
.admin-wrap .pp-r86-btn.primary:hover:not(:disabled),
.admin-wrap .theme-publish:hover:not(:disabled) {
  background: #e66010;
  border-color: #e66010;
  color: #ffffff;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 116, 31, .28);
}
.admin-wrap .btn:active:not(:disabled),
.admin-wrap .pp-r86-btn:active:not(:disabled) {
  transform: translateY(0);
}
.admin-wrap .btn.secondary,
.admin-wrap .pp-r86-btn:not(.primary):not(.ok):not(.danger) {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.admin-wrap .btn.secondary:hover:not(:disabled),
.admin-wrap .pp-r86-btn:not(.primary):not(.ok):not(.danger):hover:not(:disabled) {
  background: rgba(255, 116, 31, .09);
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  color: var(--accent);
}
.admin-wrap .btn.sm,
.admin-wrap .pp-r86-btn.sm {
  min-height: 32px;
  padding: 5px 11px;
  font-size: .78rem;
  border-radius: 7px;
}
.admin-wrap .btn.danger {
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #ffffff;
}
.admin-wrap .btn.danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .25);
}
.admin-wrap .pp-r86-btn.danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, .15);
  border-color: #ef4444;
}
.admin-wrap .pp-r86-btn.ok:hover:not(:disabled) {
  background: rgba(34, 197, 94, .15);
  border-color: #22c55e;
}

/* =====================================================================
   4. STOREFRONT PAGES: SHOP, PDP, CART, CHECKOUT, ACCOUNT, ORDERS, BLOG
   ===================================================================== */
/* Shop Page Sticky Filters & Toolbar */
@media (min-width: 901px) {
  .pp-storefront .filters {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 12px;
  }
}
.pp-storefront .shop-layout {
  gap: 24px;
}
.pp-storefront .filters h3 {
  font-size: .95rem;
  margin: 0 0 14px;
  color: var(--ink);
}
.pp-storefront .filters .group {
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.pp-storefront .filters label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 9px;
}
.pp-storefront .filters li button {
  font-size: 12.5px;
  padding: 7px 9px;
  border-radius: 7px;
  transition: background-color .15s ease, color .15s ease;
}
.pp-storefront .filters li button:hover {
  background: color-mix(in srgb, var(--accent2) 10%, transparent);
  color: var(--ink);
}
.pp-storefront .filters li button.active {
  background: color-mix(in srgb, var(--accent2) 16%, transparent);
  color: var(--accent2);
  font-weight: 650;
}
.pp-storefront .filters .count {
  font-size: 11px;
}
.pp-storefront .filter-toggle {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 12px;
  align-items: center;
  gap: 8px;
}
.pp-storefront .toolbar {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.pp-storefront .toolbar select {
  font-size: 12.5px;
  min-height: 36px;
  padding: 6px 12px;
}
.pp-storefront .pagination {
  margin-top: 28px;
  gap: 7px;
}
.pp-storefront .pagination button {
  min-width: 38px;
  min-height: 38px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.pp-storefront .pagination button:hover:not(:disabled):not(.active) {
  border-color: var(--accent2);
  color: var(--accent2);
}
.pp-storefront .pagination button.active {
  border-color: transparent;
}

/* Panels, Forms & Inputs on Storefront */
.pp-storefront .panel {
  border-radius: 14px;
  padding: 24px 26px;
  border: 1px solid var(--line);
}
.pp-storefront .form-row {
  margin-bottom: 16px;
}
.pp-storefront .form-row label {
  font-size: .83rem;
  margin-bottom: 6px;
}
.pp-storefront .form-row input,
.pp-storefront .form-row select,
.pp-storefront .form-row textarea,
.pp-storefront :is(input, select, textarea) {
  min-height: 40px;
  padding: 9px 12px;
  font-size: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pp-storefront .form-row textarea {
  min-height: 92px;
}
.pp-storefront .form-row input:focus,
.pp-storefront .form-row select:focus,
.pp-storefront .form-row textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 18%, transparent);
}

/* PDP (Product Detail) */
.pp-storefront .detail {
  padding: 28px;
  gap: 36px;
  border-radius: 14px;
}
.pp-storefront .detail h1 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--ink);
  line-height: 1.3;
}
.pp-storefront .detail .brand-line {
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--accent2);
}
.pp-storefront .gallery-thumb {
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 9px;
  padding: 4px;
  transition: border-color .16s ease;
}
.pp-storefront[data-mode="light"] .gallery-thumb {
  background: #ffffff;
}
.pp-storefront .gallery-thumb.active {
  border-color: var(--accent2);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent2) 22%, transparent);
}
.pp-storefront .qty {
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  height: 40px;
  background: var(--surface-2);
}
.pp-storefront .qty button {
  height: 100%;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 14px;
}
.pp-storefront .qty button:hover {
  background: color-mix(in srgb, var(--accent2) 16%, var(--surface-2));
  color: var(--accent2);
}
.pp-storefront .qty input {
  min-height: 0;
  height: 100%;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  border-inline: 1px solid var(--line);
}
.pp-storefront .pdp-tabs {
  margin-top: 26px;
  margin-bottom: 20px;
  gap: 4px;
}
.pp-storefront .pdp-tab {
  padding: 11px 18px;
  font-size: .92rem;
}
.pp-storefront .pdp-tab.active {
  color: var(--accent2);
  border-color: var(--accent2);
}

/* PDP semantic badges (replaces hardcoded light hexes in JS) */
.pp-pdp-discount-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(239, 68, 68, .15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .3);
}
.pp-storefront[data-mode="light"] .pp-pdp-discount-badge {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}
.pp-status-instock {
  background: rgba(34, 197, 94, .16) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, .32);
}
.pp-storefront[data-mode="light"] .pp-status-instock {
  background: #e8f7ee !important;
  color: #15803d !important;
  border-color: #bbf7d0;
}
.pp-status-outstock {
  background: rgba(239, 68, 68, .16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, .32);
}
.pp-storefront[data-mode="light"] .pp-status-outstock {
  background: #fdecea !important;
  color: #b91c1c !important;
  border-color: #fecaca;
}

/* Storefront Tables (Cart, Orders, Compare) */
.pp-storefront .table {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.pp-storefront .table th {
  background: var(--surface-2);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  letter-spacing: .06em;
  font-weight: 700;
  padding: 13px 16px;
}
.pp-storefront .table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.pp-storefront .table tbody tr:last-child td {
  border-bottom: 0;
}
.pp-storefront .table tbody tr:hover td {
  background: rgba(255, 255, 255, .02);
}
.pp-storefront[data-mode="light"] .table tbody tr:hover td {
  background: rgba(15, 23, 42, .02);
}
.pp-storefront .table .thumb {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.pp-storefront[data-mode="light"] .table .thumb {
  background: #ffffff;
}
.pp-cart-row-unavail > td {
  background: rgba(239, 68, 68, .10) !important;
}
.pp-storefront[data-mode="light"] .pp-cart-row-unavail > td {
  background: #fdf3f2 !important;
}

/* Checkout Summary Sticky & Spacing */
.pp-storefront .checkout-layout {
  gap: 24px;
}
@media (min-width: 881px) {
  .pp-storefront .checkout-layout > .panel:last-child {
    position: sticky;
    top: 74px;
  }
}

/* Dark/Light Parity on Small Elements Across Storefront */
.pp-storefront .alert {
  border-radius: 10px;
  padding: 13px 16px;
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.pp-storefront:not([data-mode="light"]) .alert.error {
  background: rgba(239, 68, 68, .13);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .38);
}
.pp-storefront:not([data-mode="light"]) .alert.ok {
  background: rgba(34, 197, 94, .13);
  color: #86efac;
  border-color: rgba(34, 197, 94, .36);
}
.pp-storefront:not([data-mode="light"]) .alert.warn {
  background: rgba(245, 158, 11, .14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, .38);
}
.pp-storefront:not([data-mode="light"]) .alert.info {
  background: rgba(59, 130, 246, .13);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, .35);
}

.pp-storefront:not([data-mode="light"]) .cat-tile.soon {
  background: var(--surface-2);
  border-color: var(--line);
}
.pp-storefront:not([data-mode="light"]) .cat-tile.soon .cat-ic {
  background: rgba(148, 163, 184, .12);
  color: var(--muted);
  border-color: var(--line);
}
.pp-storefront:not([data-mode="light"]) .compare-table {
  background: var(--surface);
  border-color: var(--line);
}
.pp-storefront:not([data-mode="light"]) .compare-table thead th,
.pp-storefront:not([data-mode="light"]) .compare-table tbody th {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}
.pp-storefront:not([data-mode="light"]) .compare-table td {
  border-color: var(--line);
}
.pp-storefront:not([data-mode="light"]) .card-list-btn {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}
.pp-storefront:not([data-mode="light"]) .card-list-btn.active {
  background: rgba(255, 122, 26, .16);
  color: #ffb074;
  border-color: rgba(255, 122, 26, .55);
}
.pp-storefront:not([data-mode="light"]) .track-dot {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--muted);
}
.pp-storefront:not([data-mode="light"]) .track-steps li.done .track-dot {
  background: rgba(34, 197, 94, .18);
  border-color: #22c55e;
  color: #4ade80;
}
.pp-storefront:not([data-mode="light"]) .verify-icon.ok {
  background: rgba(34, 197, 94, .16);
  color: #4ade80;
}
.pp-storefront:not([data-mode="light"]) .verify-icon.bad {
  background: rgba(239, 68, 68, .16);
  color: #f87171;
}
.pp-storefront:not([data-mode="light"]) .account-verify {
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .35);
  color: #fde68a;
}
.pp-storefront:not([data-mode="light"]) .blog-tag {
  color: var(--accent2);
}
.pp-storefront:not([data-mode="light"]) .lb-image {
  background: var(--surface);
}
.pp-storefront .account-shell {
  max-width: 1240px;
}
.pp-storefront .account-stat strong {
  color: var(--ink);
}
.pp-storefront .account-panel-head h2 {
  color: var(--ink);
}
.pp-storefront .contact-grid,
.pp-storefront .blog-grid {
  gap: 22px;
}
.pp-storefront .empty {
  border-radius: 14px;
  border: 1px dashed var(--line);
  padding: 52px 24px;
}

/* =====================================================================
   5. ORDER STATUS BADGES — ACCESSIBLE IN BOTH DARK & LIGHT MODES
   ===================================================================== */
.status.Pending,
.admin-wrap:not([data-admin-theme="light"]) .status.Pending,
.pp-storefront:not([data-mode="light"]) .status.Pending {
  background: rgba(245, 158, 11, .18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, .34);
}
.status.Confirmed,
.admin-wrap:not([data-admin-theme="light"]) .status.Confirmed,
.pp-storefront:not([data-mode="light"]) .status.Confirmed {
  background: rgba(59, 130, 246, .18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, .34);
}
.status.Processing,
.status.Shipped,
.admin-wrap:not([data-admin-theme="light"]) .status.Processing,
.admin-wrap:not([data-admin-theme="light"]) .status.Shipped,
.pp-storefront:not([data-mode="light"]) .status.Processing,
.pp-storefront:not([data-mode="light"]) .status.Shipped {
  background: rgba(139, 92, 246, .18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, .34);
}
.status.Delivered,
.admin-wrap:not([data-admin-theme="light"]) .status.Delivered,
.pp-storefront:not([data-mode="light"]) .status.Delivered {
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .34);
}
.status.Cancelled,
.admin-wrap:not([data-admin-theme="light"]) .status.Cancelled,
.pp-storefront:not([data-mode="light"]) .status.Cancelled {
  background: rgba(239, 68, 68, .18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .34);
}
.status.ReturnRequested,
.status.ReturnReceived,
.status.Returned,
.admin-wrap:not([data-admin-theme="light"]) .status.ReturnRequested,
.admin-wrap:not([data-admin-theme="light"]) .status.ReturnReceived,
.admin-wrap:not([data-admin-theme="light"]) .status.Returned,
.pp-storefront:not([data-mode="light"]) .status.ReturnRequested,
.pp-storefront:not([data-mode="light"]) .status.ReturnReceived,
.pp-storefront:not([data-mode="light"]) .status.Returned {
  background: rgba(148, 163, 184, .18);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .34);
}

/* Light-mode readable contrast */
.admin-wrap[data-admin-theme="light"] .status.Pending,
.pp-storefront[data-mode="light"] .status.Pending {
  background: #fef3c7; color: #92400e; border-color: #fde68a;
}
.admin-wrap[data-admin-theme="light"] .status.Confirmed,
.pp-storefront[data-mode="light"] .status.Confirmed {
  background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe;
}
.admin-wrap[data-admin-theme="light"] .status.Processing,
.admin-wrap[data-admin-theme="light"] .status.Shipped,
.pp-storefront[data-mode="light"] .status.Processing,
.pp-storefront[data-mode="light"] .status.Shipped {
  background: #ede9fe; color: #6d28d9; border-color: #ddd6fe;
}
.admin-wrap[data-admin-theme="light"] .status.Delivered,
.pp-storefront[data-mode="light"] .status.Delivered {
  background: #dcfce7; color: #15803d; border-color: #bbf7d0;
}
.admin-wrap[data-admin-theme="light"] .status.Cancelled,
.pp-storefront[data-mode="light"] .status.Cancelled {
  background: #fee2e2; color: #b91c1c; border-color: #fecaca;
}
.admin-wrap[data-admin-theme="light"] .status.ReturnRequested,
.admin-wrap[data-admin-theme="light"] .status.ReturnReceived,
.admin-wrap[data-admin-theme="light"] .status.Returned,
.pp-storefront[data-mode="light"] .status.ReturnRequested,
.pp-storefront[data-mode="light"] .status.ReturnReceived,
.pp-storefront[data-mode="light"] .status.Returned {
  background: #f1f5f9; color: #475569; border-color: #cbd5e1;
}

/* =====================================================================
   6. ADMIN PANEL STRUCTURE, PADDINGS, TABLES, INPUTS & LIGHT/DARK PARITY
   ===================================================================== */
.admin-wrap .admin-topbar {
  min-height: 62px;
  padding: 12px 28px;
}
.admin-wrap .admin-topbar-right {
  gap: 8px;
}
.admin-wrap .admin-topbar-right .admin-icon-btn,
.admin-wrap #r79-bell-btn,
.admin-wrap .pp-agent-trigger,
.admin-wrap .view-store-btn,
.admin-wrap .admin-topbar-right .btn.sm {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 8px !important;
}
.admin-wrap #r79-bell-btn {
  width: 36px !important;
}
.admin-wrap .view-store-btn {
  padding: 0 13px;
  font-size: 12.5px;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.admin-wrap .view-store-btn:hover {
  background: rgba(255, 116, 31, .08);
}

/* Uniform Admin Content Container & Page Headers */
.admin-wrap .admin-content {
  padding: 24px 28px 44px;
}
.admin-wrap .admin-page {
  max-width: 1560px;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .admin-wrap .admin-content {
    padding: 16px 16px 36px !important;
  }
}
.admin-wrap :is(.dash-head, .r84-page-header, .pp-r86-head, .r28-heading, .merch-heading, .theme-head, .r44-head, .r43-title) {
  margin-bottom: 20px;
}
.admin-wrap .admin-page > h2:first-child,
.admin-wrap :is(.dash-head, .r84-page-header, .pp-r86-head, .r28-heading, .merch-heading, .theme-head) :is(h1, h2) {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--ink);
}
.admin-wrap :is(.dash-sub, .r84-page-header p, .pp-r86-sub, .r28-heading p, .merch-heading p, .theme-head p, .ur-sub) {
  margin: 2px 0 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Uniform Admin Cards, Panels, Sections */
.admin-wrap :is(.panel, .r84-section, .pp-r86-panel, .theme-card, .orders-panel, .control-section) {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
  margin-bottom: 18px;
}
.admin-wrap .dash-kpi {
  padding: 18px 20px;
  border-radius: 12px;
  transition: border-color .18s ease, transform .18s ease;
}
.admin-wrap .dash-kpi:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.admin-wrap .dash-kpis,
.admin-wrap .dash-grid {
  gap: 16px;
  margin-bottom: 20px;
}
.admin-wrap .dash-card {
  padding: 20px;
  border-radius: 12px;
}

/* Unify ALL Admin Table Headers (removes glaring solid #ff741f orange headers on Customers/Users/Audit/Reports/Inquiries) */
.admin-wrap .table-scroll,
.admin-wrap .table-wrap,
.admin-wrap .pp-r86-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.admin-wrap .table th,
.admin-wrap .table thead th,
.admin-wrap .pp-r86-table th {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: .73rem !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase;
  padding: 11px 14px !important;
}
.admin-wrap .table td,
.admin-wrap .pp-r86-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.admin-wrap .table tbody tr:last-child td {
  border-bottom: 0;
}

/* Uniform Admin Inputs, Selects, Focus Halos */
.admin-wrap :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea) {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.admin-wrap :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 116, 31, .16);
  outline: none;
}

/* Admin Pagination & Chips Parity */
.admin-wrap .pagination button.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(255, 116, 31, .28) !important;
}
.admin-wrap .pagination button:hover:not(:disabled):not(.active) {
  background: rgba(255, 116, 31, .1) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.admin-wrap .r79-pay-chips button.active {
  color: #ffffff !important;
}

/* Fix hardcoded dark-only widgets in ux-polish-r79.css so Light Mode looks 100% native! */
.admin-wrap #r79-bell-btn {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.admin-wrap #r79-bell-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.admin-wrap #r79-bell-panel,
.admin-wrap #r79-rowpop,
.admin-wrap .r79-viewpop {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}
.admin-wrap #r79-bell-panel header {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--line) !important;
}
.admin-wrap #r79-bell-panel .btn,
.admin-wrap .r79-viewacts a,
.admin-wrap .r79-viewacts button,
.admin-wrap #r79-rowpop button {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.admin-wrap #r79-bell-panel .btn:hover,
.admin-wrap .r79-viewacts a:hover,
.admin-wrap .r79-viewacts button:hover,
.admin-wrap #r79-rowpop button:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.admin-wrap .r79-note {
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
.admin-wrap .r79-note:hover {
  background: var(--surface-2) !important;
}
.admin-wrap .r79-note .t,
.admin-wrap .r79-viewpop h4,
.admin-wrap .r79-vrow b,
.admin-wrap #r79-rowpop .nm {
  color: var(--ink) !important;
}
.admin-wrap .r79-note .b,
.admin-wrap .r79-note .m,
.admin-wrap .r79-vrow span {
  color: var(--muted) !important;
}
.admin-wrap .r79-vrow {
  border-bottom: 1px dashed var(--line) !important;
}
.admin-wrap .r79-pay-chips button {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
}
.admin-wrap .r79-pay-chips button:hover {
  color: var(--ink) !important;
  border-color: var(--accent) !important;
}
.admin-wrap .r79-pay-chips button.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}
.admin-wrap .r79-stock-scroll thead th {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
}

/* Fix hardcoded light-mode alerts/badges/thumbnails inside Admin Dark Mode */
.admin-wrap:not([data-admin-theme="light"]) .alert.error {
  background: rgba(239, 68, 68, .13);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .38);
}
.admin-wrap:not([data-admin-theme="light"]) .alert.ok {
  background: rgba(34, 197, 94, .13);
  color: #86efac;
  border-color: rgba(34, 197, 94, .36);
}
.admin-wrap:not([data-admin-theme="light"]) .alert.warn {
  background: rgba(245, 158, 11, .14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, .38);
}
.admin-wrap:not([data-admin-theme="light"]) .alert.info {
  background: rgba(59, 130, 246, .13);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, .35);
}
.admin-wrap:not([data-admin-theme="light"]) .theme-notice {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .36);
  color: #86efac;
}
.admin-wrap:not([data-admin-theme="light"]) .blocked-action {
  background: rgba(245, 158, 11, .14) !important;
  border-color: rgba(245, 158, 11, .45) !important;
  color: #fcd34d !important;
}
.admin-wrap:not([data-admin-theme="light"]) .pub-gallery-preview img {
  background: var(--surface-2);
}

/* Reusable Theme-Aware Pill & Bar Classes for JS Patches */
.pp-pill-ok {
  background: rgba(34, 197, 94, .16) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, .34) !important;
}
[data-admin-theme="light"] .pp-pill-ok,
[data-mode="light"] .pp-pill-ok {
  background: #e8f7ee !important;
  color: #10633c !important;
  border-color: #bbf7d0 !important;
}
.pp-pill-warn {
  background: rgba(245, 158, 11, .16) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, .34) !important;
}
[data-admin-theme="light"] .pp-pill-warn,
[data-mode="light"] .pp-pill-warn {
  background: #fff7e6 !important;
  color: #8a5300 !important;
  border-color: #fde68a !important;
}
.pp-pill-bad {
  background: rgba(239, 68, 68, .16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, .34) !important;
}
[data-admin-theme="light"] .pp-pill-bad,
[data-mode="light"] .pp-pill-bad {
  background: #fdecea !important;
  color: #93261c !important;
  border-color: #f5c2bd !important;
}
.pp-pill-info {
  background: rgba(59, 130, 246, .16) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, .34) !important;
}
[data-admin-theme="light"] .pp-pill-info,
[data-mode="light"] .pp-pill-info {
  background: #eef2ff !important;
  color: #3730a3 !important;
  border-color: #c7d2fe !important;
}
.pp-adm-thumb {
  max-height: 170px;
  object-fit: contain;
  background: var(--surface-2);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
[data-admin-theme="light"] .pp-adm-thumb {
  background: #f8fafc;
}

/* =====================================================================
   7. RESPONSIVE MOBILE & TABLET REFINEMENT
   ===================================================================== */
@media (max-width: 700px) {
  .pp-storefront .pp-content {
    padding-top: 16px !important;
  }
  .pp-storefront .pp-main {
    padding-bottom: 36px;
  }
  .pp-storefront .page-head {
    margin: 2px 0 18px;
    padding-bottom: 12px;
  }
  .pp-storefront .pp-section {
    margin-bottom: 32px;
  }
  .pp-storefront .pp-section-head h2 {
    font-size: 18px;
  }
  .pp-storefront .panel {
    padding: 18px 16px;
  }
  .pp-storefront .detail {
    padding: 18px 16px;
    gap: 24px;
  }
  .pp-storefront .pp-newsletter {
    padding: 22px 18px;
    margin-top: 32px;
  }
  .admin-wrap .admin-topbar {
    padding: 12px 16px;
  }
  .admin-wrap :is(.panel, .r84-section, .pp-r86-panel, .theme-card, .orders-panel, .control-section) {
    padding: 16px;
  }
}

@media (max-width: 540px) {
  .pp-storefront .pp-product-media {
    padding: 12px;
  }
  .pp-storefront .pp-product-info {
    padding: 12px;
  }
  .pp-storefront .pp-add-cart {
    font-size: 10px !important;
    padding: 7px 6px;
    gap: 4px;
  }
  .pp-storefront .pp-quick-icon {
    width: 28px;
    flex: 0 0 28px;
  }
}
