/**
 * Single product — explicit light/dark palettes (hex + !important).
 * Loaded last (footer) so it wins over header inline + woo-custom vars.
 * Fixes: characteristics block + tab table staying “dark” when theme is light.
 */

/* -------------------------------------------------------------------------
   LIGHT — «светлая карточка»: белый фон, тёмный текст
   ------------------------------------------------------------------------- */
html[data-theme="light"] body.single-product .faraon-key-attrs {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

html[data-theme="light"] body.single-product .faraon-key-attrs__item {
    border-bottom-color: #e5e7eb !important;
}

html[data-theme="light"] body.single-product .faraon-key-attrs__label {
    color: #6b7280 !important;
}

html[data-theme="light"] body.single-product .faraon-key-attrs__value {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .faraon-key-attrs__value a {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
}

html[data-theme="light"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes tr {
    border-bottom-color: #e5e7eb !important;
}

html[data-theme="light"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes th {
    color: #6b7280 !important;
}

html[data-theme="light"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes td {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes td a,
html[data-theme="light"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes td a * {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .singl-prd .summary p.price,
html[data-theme="light"] body.single-product .singl-prd .summary p.price bdi,
html[data-theme="light"] body.single-product .singl-prd .summary p.price .woocommerce-Price-amount {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .singl-prd .product_title,
html[data-theme="light"] body.single-product .singl-prd h1.product_title {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .singl-prd .product_meta,
html[data-theme="light"] body.single-product .singl-prd .product_meta .posted_in {
    color: #4b5563 !important;
}

html[data-theme="light"] body.single-product .singl-prd .product_meta a {
    color: #0e5ac5 !important;
}

html[data-theme="light"] body.single-product .singl-prd p.stock {
    color: #6b7280 !important;
}

html[data-theme="light"] body.single-product div.product .woocommerce-tabs ul.tabs {
    border-bottom-color: #e5e7eb !important;
}

html[data-theme="light"] body.single-product div.product .woocommerce-tabs ul.tabs li {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

html[data-theme="light"] body.single-product div.product .woocommerce-tabs ul.tabs li a {
    color: #4b5563 !important;
}

html[data-theme="light"] body.single-product div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product div.product .woocommerce-tabs ul.tabs li.active {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    border-bottom-color: #ffffff !important;
}

html[data-theme="light"] body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2,
html[data-theme="light"] body.single-product .woocommerce-tabs .panel.entry-content h2 {
    color: #111827 !important;
}

html[data-theme="light"] body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
html[data-theme="light"] body.single-product .woocommerce-tabs .panel.entry-content {
    color: #4b5563 !important;
}

/* -------------------------------------------------------------------------
   DARK — тёмные поверхности и светлый текст
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.single-product .faraon-key-attrs {
    background: #1f2937 !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] body.single-product .faraon-key-attrs__item {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] body.single-product .faraon-key-attrs__label {
    color: #9ca3af !important;
}

html[data-theme="dark"] body.single-product .faraon-key-attrs__value {
    color: #e5e7eb !important;
}

html[data-theme="dark"] body.single-product .faraon-key-attrs__value a {
    color: #60a5fa !important;
}

html[data-theme="dark"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes {
    background: #1f2937 !important;
    border: 1px solid #334155 !important;
}

html[data-theme="dark"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes tr {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes th {
    color: #9ca3af !important;
}

html[data-theme="dark"] body.single-product .woocommerce-Tabs-panel--additional_information .shop_attributes td {
    color: #e5e7eb !important;
}

html[data-theme="dark"] body.single-product .singl-prd .summary p.price,
html[data-theme="dark"] body.single-product .singl-prd .summary .price,
html[data-theme="dark"] body.single-product .singl-prd .summary p.price bdi,
html[data-theme="dark"] body.single-product .singl-prd .summary p.price .woocommerce-Price-amount,
html[data-theme="dark"] body.single-product .singl-prd .summary p.price .woocommerce-Price-currencySymbol,
html[data-theme="dark"] body.single-product .singl-prd .summary p.price ins,
html[data-theme="dark"] body.single-product .singl-prd .summary p.price ins * {
    color: #e5e7eb !important;
}

html[data-theme="dark"] body.single-product .singl-prd .product_meta,
html[data-theme="dark"] body.single-product .singl-prd .product_meta .posted_in,
html[data-theme="dark"] body.single-product .singl-prd .product_meta .sku_wrapper,
html[data-theme="dark"] body.single-product .singl-prd .product_meta span.sku {
    color: #d1d5db !important;
}

html[data-theme="dark"] body.single-product .singl-prd .product_meta a {
    color: #60a5fa !important;
}

html[data-theme="dark"] body.single-product .singl-prd p.stock,
html[data-theme="dark"] body.single-product .singl-prd p.stock.out-of-stock {
    color: #9ca3af !important;
}

html[data-theme="dark"] body.single-product .singl-prd .product_title,
html[data-theme="dark"] body.single-product .singl-prd h1.product_title {
    color: #f9fafb !important;
}

html[data-theme="dark"] body.single-product .singl-prd .woocommerce-product-details__short-description,
html[data-theme="dark"] body.single-product .singl-prd .woocommerce-product-details__short-description p {
    color: #d1d5db !important;
}

html[data-theme="dark"] body.single-product .singl-prd div.summary.entry-summary {
    color: #d1d5db !important;
}

html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs li {
    background: #1f2937 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs li a {
    color: #d1d5db !important;
}

html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #f9fafb !important;
}

html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs li.active {
    background: #111827 !important;
    border-color: #475569 !important;
    border-bottom-color: #111827 !important;
}

html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    color: #f9fafb !important;
}

html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs li.active::before,
html[data-theme="dark"] body.single-product div.product .woocommerce-tabs ul.tabs li.active::after {
    box-shadow: none !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] body.single-product .woocommerce-tabs .woocommerce-Tabs-panel h2,
html[data-theme="dark"] body.single-product .woocommerce-tabs .panel.entry-content h2,
html[data-theme="dark"] body.single-product div.product .woocommerce-Tabs-panel > h2 {
    color: #f9fafb !important;
}

html[data-theme="dark"] body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
html[data-theme="dark"] body.single-product .woocommerce-tabs .panel.entry-content {
    color: #d1d5db !important;
}

html[data-theme="dark"] body.single-product .woocommerce-tabs .woocommerce-Tabs-panel a {
    color: #60a5fa !important;
}

html[data-theme="dark"] body.single-product .singl-prd .wpgs-thumb .slick-track > div {
    border-color: #475569 !important;
    background: #1f2937 !important;
}
