
/* DONEDEAL unified customer theme — presentation only */
:root[data-dd-store-theme=dark]{--dd-bg:#141419;--dd-surface:#232129;--dd-surface2:#2d2933;--dd-text:#f8f4f8;--dd-muted:#c6bac8;--dd-border:#47404b;--dd-input:#292630;--dd-accent:#f065a1;--dd-shadow:0 10px 30px #0002;color-scheme:dark}
:root[data-dd-store-theme=light]{--dd-bg:#f8f6f8;--dd-surface:#fff;--dd-surface2:#f7eff4;--dd-text:#29212b;--dd-muted:#625766;--dd-border:#e4d9e2;--dd-input:#fdfbfd;--dd-accent:#b72b6a;--dd-shadow:0 10px 30px #4d24400d;color-scheme:light}
html[data-dd-store-theme] body{background:var(--dd-bg)!important;color:var(--dd-text)!important}
html[data-dd-store-theme] .dd-menu-panel{background:var(--dd-surface)!important;color:var(--dd-text)!important;border-right:1px solid var(--dd-border)!important;box-shadow:16px 0 50px #0003}
html[data-dd-store-theme] .dd-menu-top,html[data-dd-store-theme] .dd-menu-foot{border-color:var(--dd-border)!important;color:var(--dd-muted)!important}
html[data-dd-store-theme] .dd-menu-brand{color:var(--dd-text)!important}
html[data-dd-store-theme] .dd-menu-links a{color:var(--dd-text)!important}
html[data-dd-store-theme] .dd-menu-links a:hover,html[data-dd-store-theme] .dd-menu-links a:focus-visible{background:var(--dd-surface2)!important;color:var(--dd-accent)!important}
html[data-dd-store-theme] .dd-menu-close{color:var(--dd-text)!important}
html[data-dd-store-theme] .dd-menu-trigger{background:var(--dd-surface2)!important;color:var(--dd-text)!important;border-color:var(--dd-border)!important}
html[data-dd-store-theme] .dd-unified-theme-toggle{cursor:pointer;border-radius:12px;border:1px solid var(--dd-border);background:var(--dd-surface2);color:var(--dd-text);padding:10px 14px;font:650 13px system-ui,sans-serif;white-space:nowrap}
html[data-dd-store-theme] .dd-unified-theme-toggle:hover{border-color:var(--dd-accent)}
html[data-dd-store-theme] :is(input,select,textarea){accent-color:var(--dd-accent)}
html[data-dd-store-theme] :is(input,select,textarea):focus-visible{outline:2px solid var(--dd-accent);outline-offset:2px}
html[data-dd-store-theme] :is(button,a):focus-visible{outline:2px solid var(--dd-accent);outline-offset:3px}
html[data-dd-store-theme=light] :is(.dd-extra-section,.dd-extra-section h1,.dd-extra-section h2,.dd-extra-section h3){color:var(--dd-text)!important}
html[data-dd-store-theme=light] :is(.dd-extra-card,.dd-detail-card,.orderDetails,.cart-product,.item){color:var(--dd-text)!important}
html[data-dd-store-theme=light] :is(.dd-extra-card p,.dd-extra-section p,.dd-extra-info small){color:var(--dd-muted)}
/* Tracking page and payment confirmation */
html[data-dd-store-theme] body.dd-unified-secondary header{background:var(--dd-surface)!important;border-color:var(--dd-border)!important}
html[data-dd-store-theme] body.dd-unified-secondary header a{color:var(--dd-accent)!important}
html[data-dd-store-theme] body.dd-unified-secondary :is(.card,.result){background:var(--dd-surface)!important;border-color:var(--dd-border)!important;color:var(--dd-text)!important;box-shadow:var(--dd-shadow)}
html[data-dd-store-theme] body.dd-unified-secondary :is(h1,h2,h3,label,.detail strong){color:var(--dd-text)!important}
html[data-dd-store-theme] body.dd-unified-secondary :is(p,.muted,.small){color:var(--dd-muted)!important}
html[data-dd-store-theme] body.dd-unified-secondary :is(input,select,textarea){background:var(--dd-input)!important;border-color:var(--dd-border)!important;color:var(--dd-text)!important}
html[data-dd-store-theme] body.dd-unified-secondary .info{background:var(--dd-surface2)!important;color:var(--dd-text)!important}
html[data-dd-store-theme] body.dd-unified-secondary .pill{background:var(--dd-surface2)!important;color:var(--dd-accent)!important}
html[data-dd-store-theme] body.dd-unified-secondary .dd-unified-theme-toggle{margin:0 0 0 auto;width:auto}
html[data-dd-store-theme] body.dd-unified-secondary header{display:flex;align-items:center;justify-content:space-between;gap:12px}
html[data-dd-store-theme] body.dd-unified-secondary .dd-track-float{background:#c72f75!important;color:#fff!important}
@media(max-width:650px){html[data-dd-store-theme] body.dd-unified-secondary header{flex-wrap:wrap}}

html[data-dd-store-theme=light] :is(.hero,.hero-content,.intro,.shop-head,.section-heading,.brand-heading,.section-title){color:var(--dd-text)}
html[data-dd-store-theme=light] :is(.hero h1,.hero h2,.section-heading h2,.section-title h2,.shop-head h1,.brand-heading h1){color:var(--dd-text)!important}
html[data-dd-store-theme=light] :is(.shop-head p,.section-heading p,.brand-heading p){color:var(--dd-muted)!important}
html[data-dd-store-theme=light] :is(.product,.product-card,.filter-panel,.filter-bar,.search-wrap){border-color:var(--dd-border)!important}

/* Brand mark: transparent emblem on light surfaces; original on dark. */
html[data-dd-store-theme=light] img.ddBrandMark{content:url('done-deal-mark-light.png');filter:drop-shadow(0 2px 3px #47263b20)!important}
html[data-dd-store-theme=light] :is(.nav,.logoLink,.logo){color:#29212b!important}
html[data-dd-store-theme=light] .logo span{color:#b72b6a!important}
html[data-dd-store-theme=light] .footer .logo{color:#fff!important}


/* Brand strip: LIGHT MODE ONLY. Keep original logos, layout and all dark-mode rules. */
html[data-dd-store-theme="light"] .brandBar{
  background:#fdfcfd!important;
  border-top-color:#e8dfe6!important;
  border-bottom-color:#e8dfe6!important;
  box-shadow:none!important;
}
html[data-dd-store-theme="light"] .brandBar .brandTile{
  background:transparent!important;
  color:#302735!important;
  border-right-color:#e8dfe6!important;
  border-bottom-color:#e8dfe6!important;
  text-shadow:none!important;
}
html[data-dd-store-theme="light"] .brandBar .brandTile:hover,
html[data-dd-store-theme="light"] .brandBar .brandTile:focus-visible{
  background:#f9eff4!important;
  color:#302735!important;
}
html[data-dd-store-theme="light"] .brandBar .samsungWord{color:#302735!important}
html[data-dd-store-theme="light"] .brandBar .appleLogo{filter:brightness(0)!important}
html[data-dd-store-theme="light"] .brandBar .huaweiIcon{filter:invert(24%) sepia(95%) saturate(2685%) hue-rotate(333deg) brightness(93%) contrast(92%)!important}
html[data-dd-store-theme="light"] .brandBar .oppo{color:#167b43!important}
html[data-dd-store-theme="light"] .brandBar .vivo{color:#3453c2!important}
@media(max-width:650px){
 html[data-dd-store-theme="light"] .brandBar .brandTile{border-bottom-color:#e8dfe6!important}
}

/* Light-mode logo correction: use the transparent light-background emblem. */
html[data-dd-store-theme="light"] img.ddBrandMark {
  content: url("done-deal-mark-light.png") !important;
  filter: drop-shadow(0 2px 3px rgba(71,38,59,.12)) !important;
}
html[data-dd-store-theme="light"] .nav .logo { color: #29212b !important; }
html[data-dd-store-theme="light"] .nav .logo span { color: #b72b6a !important; }


/* DONEDEAL light-mode readability repair — desktop and mobile, 2026-11-15 */
html[data-dd-store-theme="light"] .dd-extra-section,
html[data-dd-store-theme="light"] .dd-extra-section h1,
html[data-dd-store-theme="light"] .dd-extra-section h2,
html[data-dd-store-theme="light"] .dd-extra-section h3,
html[data-dd-store-theme="light"] .dd-extra-info,
html[data-dd-store-theme="light"] .dd-extra-info h3,
html[data-dd-store-theme="light"] #dd-wishlist-grid {
  color: #251c28 !important;
}
html[data-dd-store-theme="light"] .dd-extra-section > p,
html[data-dd-store-theme="light"] .dd-extra-info small,
html[data-dd-store-theme="light"] .dd-extra-info .muted {
  color: #625566 !important;
}
html[data-dd-store-theme="light"] .dd-extra-card {
  background: #ffffff !important;
  border-color: #dfcdd8 !important;
  color: #251c28 !important;
}
html[data-dd-store-theme="light"] .dd-extra-card .dd-extra-info p {
  color: #a92260 !important;
}
html[data-dd-store-theme="light"] .dd-extra-photo {
  background: #f6f0f4 !important;
}
html[data-dd-store-theme="light"] .dd-extra-actions button {
  color: #ffffff !important;
}
html[data-dd-store-theme="light"] .dd-extra-actions .dd-save {
  background: #67334f !important;
  color: #ffffff !important;
}
/* Wishlist page has a standalone dark header; switch it with the selected theme. */
html[data-dd-store-theme="light"] body > header:not(.nav) {
  background: #ffffff !important;
  color: #251c28 !important;
  border-bottom: 1px solid #e7d9e2 !important;
}
html[data-dd-store-theme="light"] body > header:not(.nav) b,
html[data-dd-store-theme="light"] body > header:not(.nav) strong {
  color: #251c28 !important;
}
html[data-dd-store-theme="light"] body > header:not(.nav) a {
  color: #a92260 !important;
}
html[data-dd-store-theme="light"] body > header:not(.nav) [data-dd-theme-toggle] {
  background: #fff0f6 !important;
  color: #84214e !important;
  border: 1px solid #dba6bd !important;
}
/* Prevent low-contrast inherited colors in empty-state messages and links. */
html[data-dd-store-theme="light"] #dd-wishlist-grid a,
html[data-dd-store-theme="light"] .dd-extra-section a {
  color: #a92260 !important;
}
html[data-dd-store-theme="light"] #dd-wishlist-grid :is(.empty,.empty-state,.dd-empty) {
  color: #625566 !important;
}
