/* ProCart BD v1.6.0 — the two remaining dark-mode defects, fixed at the root.
 *
 * 1. Product page: store.css hard-codes the skybuy gallery column, image
 *    wrap and placeholder with !important LIGHT backgrounds (#ffffff,
 *    #f8fafc, #f1f5f9). The v1.5.6/v1.5.7 dark rules had no !important, so
 *    they lost — leaving light strips around the (inverted) placeholder
 *    image. These rules use !important too, dark only.
 * 2. Vendor hero: the illustration is an inline SVG whose background rect
 *    uses a near-white gradient (#eef1ff -> #f7f9ff) and white cards.
 *    CSS fill/stop-color beats SVG presentation attributes, so in dark
 *    mode the artwork is recoloured properly instead of just dimmed. */

html[data-pc-theme="dark"] .pc-skybuy-gallery-col {
  background: #1b2537 !important;
  border-color: #3a4a66 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35) !important;
}
html[data-pc-theme="dark"] .pc-skybuy-main-image-wrap,
html[data-pc-theme="dark"] .pc-skybuy-main-image {
  background: #243044 !important;
  border-color: #3b4963 !important;
}
html[data-pc-theme="dark"] .pc-skybuy-placeholder {
  background: #243044 !important;
  color: #a9c2ff !important;
}
/* Classic PDP layout, same treatment */
html[data-pc-theme="dark"] .pc-pdp .pc-pdp-stage {
  background: #202c40 !important;
  border-color: #3a4a66 !important;
}
html[data-pc-theme="dark"] .pc-pdp-placeholder { color: #8ea3c8 !important; }
html[data-pc-theme="dark"] .pc-pdp-placeholder strong { color: #c7d5f2 !important; }
html[data-pc-theme="dark"] .pc-pdp-placeholder strong span,
html[data-pc-theme="dark"] .pc-pdp-placeholder > span { color: #93a5c6 !important; }

/* Vendor hero illustration recoloured for dark mode */
html[data-pc-theme="dark"] .pc-shop-hero-art svg stop[offset="0%"] { stop-color: #2b3d5f; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg stop[offset="100%"] { stop-color: #1f2c47; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg rect[fill="#fff"] { fill: #2b3c5c; stroke: #4a5f8a; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg rect[fill="#eef1ff"] { fill: #33456a; stroke: #4a5f8a; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg rect[fill="#dcf4e6"] { fill: #274a3a; stroke: #3c6b52; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg circle[fill="#eef1ff"] { fill: #33456a; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg circle[fill="#ffe6b8"] { fill: #8a6d35; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg rect[fill="#dfe4f4"] { fill: #43578a; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg rect[fill="#eceffa"] { fill: #3a4c74; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg path[stroke="#dfe4f4"] { stroke: #43578a; }
html[data-pc-theme="dark"] .pc-shop-hero-art svg path[stroke="#c9d2ea"],
html[data-pc-theme="dark"] .pc-shop-hero-art svg path[stroke="#cfd7f2"] { stroke: #4a5f8a; }

/* v1.6.3 — product stage, layered: cover every element that can show light.
   The live PDP is the classic template: the stage box, the main image box
   (width:100%/height:100% with object-fit:contain letterboxing) and the
   placeholder image content itself each get a dark treatment, so no layer
   can leave light strips beside the image. */
html[data-pc-theme="dark"] .pc-pdp-stage {
  background: #202c40 !important;
  border-color: #3a4a66 !important;
}
html[data-pc-theme="dark"] .pc-pdp-main-image {
  background: #202c40 !important;
}
html[data-pc-theme="dark"] .pc-pdp-main-image[src*="woocommerce-placeholder"],
html[data-pc-theme="dark"] .pc-pdp-stage img[src*="woocommerce-placeholder"],
html[data-pc-theme="dark"] .pc-pdp .pc-thumb-item img[src*="woocommerce-placeholder"] {
  filter: invert(0.93) hue-rotate(180deg) saturate(0.65);
}

/* v1.6.4 — dark placeholder fills the stage edge-to-edge (object-fit: cover),
   so no letterbox area exists on any layer and no light strip can show. */
html[data-pc-theme="dark"] .pc-pdp-main-image[src*="woocommerce-placeholder"] {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

/* v1.6.5 — open-your-shop dark completion: the hero/section headings keep
   their own dark-navy colour in the base CSS (unreadable on dark cards),
   the ghost button stays white, and the vendor form fields stay light.
   Bring all three onto the dark palette inside the vendor shell. */
html[data-pc-theme="dark"] .pc-vendor-shell .pc-shop-hero h1,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-sec-head h2,
html[data-pc-theme="dark"] .pc-vendor-shell h2,
html[data-pc-theme="dark"] .pc-vendor-shell h3 { color: #f1f5f9 !important; }
html[data-pc-theme="dark"] .pc-vendor-shell .pc-btn-ghost {
  background: #263650 !important; border-color: #3a4a66 !important; color: #dbeafe !important;
}
html[data-pc-theme="dark"] .pc-vendor-shell .pc-vform label,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-field label { color: #cbd5e1 !important; }
html[data-pc-theme="dark"] .pc-vendor-shell .pc-vform input,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-vform select,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-vform textarea,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-field input,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-field select,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-field textarea {
  background: #232f47 !important; border-color: #3a4a66 !important; color: #e8eefb !important;
}

/* v1.7.26 — ভেন্ডর পণ্য ফর্মের নতুন কার্ড/বক্স (ডার্ক) */
html[data-pc-theme="dark"] .pc-vendor-shell .pc-vform-card {
  background: #1b2230 !important; border-color: #2b3548 !important;
}
html[data-pc-theme="dark"] .pc-vendor-shell .pc-photo-box,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-weight-box {
  background: #181e2a !important; border-color: #3b475e !important;
}
html[data-pc-theme="dark"] .pc-vendor-shell .pc-photo-box-head,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-weight-toggle {
  color: #f1f5f9 !important;
}
html[data-pc-theme="dark"] .pc-vendor-shell .pc-photo-note,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-weight-hint,
html[data-pc-theme="dark"] .pc-vendor-shell .pc-field-note {
  color: #94a3b8 !important;
}
html[data-pc-theme="dark"] .pc-vendor-shell .pc-weight-grid label > span {
  color: #cbd5e1 !important;
}
