/* ======================================================================
   ARCANUM SINGLE PRODUCT — DARK / STANDALONE V5
   File: assets/css/dark/arcanum-dark-product.css
   Scope: html.arcanum-dark body.single-product .arc-product
   Standalone complete dark layer. No previous product dark file is required.
====================================================================== */

html.arcanum-dark body.single-product {
  --arc-product-bg: #050b16;
  --arc-product-surface: #0b1626;
  --arc-product-surface-soft: #071120;
  --arc-product-heading: #f8fafc;
  --arc-product-text: #cbd5e1;
  --arc-product-muted: #94a3b8;
  --arc-product-border: rgba(255, 255, 255, .10);
  --arc-product-border-blue: rgba(56, 189, 248, .22);
  --arc-product-accent: #38bdf8;
  --arc-product-accent-2: #7dd3fc;
  --arc-product-accent-soft: rgba(14, 165, 233, .12);
  --arc-product-success: #34d399;
  --arc-product-danger: #fda4af;
  --arc-product-shadow: 0 24px 64px rgba(0, 0, 0, .30);
  --arc-product-shadow-soft: 0 14px 38px rgba(0, 0, 0, .22);

  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, .09), transparent 28%),
    linear-gradient(180deg, #050b16 0%, #08111f 100%) !important;
  color: var(--arc-product-text) !important;
}

html.arcanum-dark body.single-product :is(#page, .site, .site-content, .content-area, main.container-main.arc-product) {
  background: transparent !important;
}

html.arcanum-dark body.single-product .arc-product {
  color: var(--arc-product-text);
}

html.arcanum-dark body.single-product .arc-product :is(h1, h2, h3, h4, strong, b) {
  color: var(--arc-product-heading);
}

html.arcanum-dark body.single-product .arc-product a {
  color: inherit;
}

/* Breadcrumb */
html.arcanum-dark body.single-product .arc-product__breadcrumb {
  background: transparent;
  box-shadow: none;
}

html.arcanum-dark body.single-product .arc-product__breadcrumb a {
  color: #94a3b8;
}

html.arcanum-dark body.single-product .arc-product__breadcrumb a:hover,
html.arcanum-dark body.single-product .arc-product__breadcrumb a:focus-visible {
  color: #7dd3fc;
}

html.arcanum-dark body.single-product .arc-product__breadcrumb [aria-current="page"] {
  color: #e0f2fe;
}

html.arcanum-dark body.single-product .arc-product__breadcrumb-separator {
  color: #475569;
}

/* Hero + summary */
html.arcanum-dark body.single-product :is(
  .arc-product__hero,
  .arc-product__details,
  .arc-product__related
) {
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, .10), transparent 31%),
    linear-gradient(145deg, #0b1626 0%, #08111f 100%);
  border-color: var(--arc-product-border);
  box-shadow: var(--arc-product-shadow);
}

html.arcanum-dark body.single-product .arc-product__title {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  text-shadow: 0 12px 32px rgba(0, 0, 0, .20);
}

html.arcanum-dark body.single-product .arc-product__english-name {
  color: #94a3b8;
}

html.arcanum-dark body.single-product :is(.arc-product__meta-item, .arc-product__rating-link) {
  background: rgba(255, 255, 255, .05);
  border-color: var(--arc-product-border);
  color: #cbd5e1;
}

html.arcanum-dark body.single-product :is(.arc-product__meta-item, .arc-product__rating-link):hover,
html.arcanum-dark body.single-product :is(.arc-product__meta-item, .arc-product__rating-link):focus-visible {
  background: rgba(14, 165, 233, .12);
  border-color: rgba(125, 211, 252, .28);
}

html.arcanum-dark body.single-product .arc-product__rating-link .arc-icon {
  color: #fbbf24;
}

html.arcanum-dark body.single-product .arc-product__meta-item span,
html.arcanum-dark body.single-product .arc-product__rating-link small {
  color: #94a3b8;
}

html.arcanum-dark body.single-product .arc-product__meta-item b,
html.arcanum-dark body.single-product .arc-product__rating-link > span {
  color: #e0f2fe;
}

/* Product media follows the actual image ratio; no forced white square. */
html.arcanum-dark body.single-product .arc-product__gallery-card {
  background: transparent;
  border-color: var(--arc-product-border);
  box-shadow: none;
}

html.arcanum-dark body.single-product .arc-product__main-image-wrap {
  background: transparent;
  border-color: transparent;
}

html.arcanum-dark body.single-product .arc-product__main-image {
  background: transparent;
  filter: none;
}

html.arcanum-dark body.single-product .arc-product__thumb {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}

html.arcanum-dark body.single-product .arc-product__thumb:hover,
html.arcanum-dark body.single-product .arc-product__thumb:focus-visible,
html.arcanum-dark body.single-product .arc-product__thumb.is-active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}

html.arcanum-dark body.single-product .arc-product__discount-badge {
  background: #e11d48;
  color: #fff;
}

/* Buy card */
html.arcanum-dark body.single-product .arc-product__buy-card {
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, .13), transparent 36%),
    #071120;
  border-color: rgba(56, 189, 248, .22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

html.arcanum-dark body.single-product .arc-product__price,
html.arcanum-dark body.single-product .arc-product__price :is(.price, .amount, bdi, ins, ins *, .woocommerce-Price-amount) {
  color: #e0f2fe !important;
  -webkit-text-fill-color: #e0f2fe !important;
}

html.arcanum-dark body.single-product .arc-product__price ins,
html.arcanum-dark body.single-product .arc-product__price ins * {
  text-decoration: none !important;
}

html.arcanum-dark body.single-product .arc-product__price del,
html.arcanum-dark body.single-product .arc-product__price del * {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  text-decoration-color: #fb7185 !important;
}

html.arcanum-dark body.single-product .arc-product__price-unavailable {
  color: #fda4af !important;
  -webkit-text-fill-color: #fda4af !important;
}

html.arcanum-dark body.single-product .arc-product__stock.is-in-stock {
  color: #86efac;
  background: rgba(16, 185, 129, .10);
  border-color: rgba(52, 211, 153, .20);
}

html.arcanum-dark body.single-product .arc-product__stock.is-out-of-stock {
  color: #fda4af;
  background: rgba(244, 63, 94, .10);
  border-color: rgba(253, 164, 175, .20);
}

html.arcanum-dark body.single-product .arc-product__sale-timer {
  background: rgba(244, 63, 94, .09);
  border-color: rgba(253, 164, 175, .16);
  color: #fecdd3;
}

html.arcanum-dark body.single-product .arc-product__sale-timer .arc-icon,
html.arcanum-dark body.single-product .arc-product__sale-timer strong {
  color: #fda4af;
}

/* Native WooCommerce purchase controls */
html.arcanum-dark body.single-product .arc-product__purchase-form :is(
  .variations,
  .woocommerce-variation,
  .woocommerce-variation-add-to-cart,
  .group_table
) {
  color: #cbd5e1;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .variations label,
html.arcanum-dark body.single-product .arc-product__purchase-form .group_table label,
html.arcanum-dark body.single-product .arc-product__purchase-form .stock {
  color: #e0f2fe !important;
  -webkit-text-fill-color: #e0f2fe !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form :is(select, input[type="text"], input[type="number"]) {
  background: #050b16 !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  color-scheme: dark;
}

html.arcanum-dark body.single-product .arc-product__purchase-form select option {
  color: #f8fafc;
  background: #071120;
}

html.arcanum-dark body.single-product .arc-product__purchase-form :is(select, input[type="text"], input[type="number"]):focus {
  border-color: rgba(56, 189, 248, .48) !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12) !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .reset_variations {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .quantity {
  background: #050b16;
  border-color: rgba(255, 255, 255, .14);
}

html.arcanum-dark body.single-product .arc-product__purchase-form .arc-qty__btn {
  background: transparent;
  color: #dbeafe;
  border-color: rgba(255, 255, 255, .10);
}

html.arcanum-dark body.single-product .arc-product__purchase-form .arc-qty__btn .arc-qty__icon {
  color: currentColor;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .arc-qty__btn:hover,
html.arcanum-dark body.single-product .arc-product__purchase-form .arc-qty__btn:focus-visible {
  background: rgba(14, 165, 233, .14);
  color: #7dd3fc;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .arc-qty__btn--minus {
  border-left-color: rgba(255, 255, 255, .10);
}

html.arcanum-dark body.single-product .arc-product__purchase-form .arc-qty__btn--plus {
  border-right-color: rgba(255, 255, 255, .10);
}

html.arcanum-dark body.single-product .arc-product__purchase-form :is(.single_add_to_cart_button, .button.alt) {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 14px 32px rgba(14, 165, 233, .24) !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form :is(.single_add_to_cart_button, .button.alt):hover {
  box-shadow: 0 18px 38px rgba(14, 165, 233, .31) !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .single_add_to_cart_button.disabled,
html.arcanum-dark body.single-product .arc-product__purchase-form .single_add_to_cart_button:disabled {
  background: #334155 !important;
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  box-shadow: none !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .group_table :is(td, th) {
  border-color: rgba(255, 255, 255, .10) !important;
  color: #cbd5e1 !important;
}

/* Contact */
html.arcanum-dark body.single-product .arc-product__contact-note {
  background: rgba(255, 255, 255, .045);
  border-color: var(--arc-product-border);
  box-shadow: none;
}

html.arcanum-dark body.single-product .arc-product__contact-icon {
  background: rgba(14, 165, 233, .13);
  border-color: rgba(125, 211, 252, .20);
  color: #7dd3fc;
}

html.arcanum-dark body.single-product .arc-product__contact-copy strong {
  color: #f8fafc;
}

html.arcanum-dark body.single-product .arc-product__contact-copy span {
  color: #94a3b8;
}

html.arcanum-dark body.single-product .arc-product__contact-button {
  background: rgba(14, 165, 233, .12);
  border-color: rgba(125, 211, 252, .20);
  color: #7dd3fc;
}

html.arcanum-dark body.single-product .arc-product__contact-button:hover,
html.arcanum-dark body.single-product .arc-product__contact-button:focus-visible {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

/* Details / tabs */
html.arcanum-dark body.single-product .arc-product__details-header {
  border-color: var(--arc-product-border);
}

html.arcanum-dark body.single-product .arc-product__details-header p,
html.arcanum-dark body.single-product .arc-product__panel-heading p {
  color: #94a3b8;
}

html.arcanum-dark body.single-product .arc-product__section-kicker,
html.arcanum-dark body.single-product .arc-product__panel-heading > div > span {
  color: #7dd3fc;
  background: rgba(14, 165, 233, .12);
  border-color: rgba(125, 211, 252, .18);
}

html.arcanum-dark body.single-product .arc-product__tabs {
  background: #050b16;
  border-color: var(--arc-product-border);
}

html.arcanum-dark body.single-product .arc-product__tab {
  color: #94a3b8;
}

html.arcanum-dark body.single-product .arc-product__tab:hover,
html.arcanum-dark body.single-product .arc-product__tab:focus-visible {
  color: #e0f2fe;
  background: rgba(255, 255, 255, .045);
}

html.arcanum-dark body.single-product .arc-product__tab.is-active,
html.arcanum-dark body.single-product .arc-product__tab[aria-selected="true"] {
  color: #7dd3fc;
  background: rgba(14, 165, 233, .12);
}

html.arcanum-dark body.single-product .arc-product__tab small {
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
}

html.arcanum-dark body.single-product .arc-product__tab.is-active small {
  background: rgba(125, 211, 252, .14);
  color: #bae6fd;
}

html.arcanum-dark body.single-product .arc-product__panel {
  background: rgba(255, 255, 255, .035);
  border-color: var(--arc-product-border);
}

html.arcanum-dark body.single-product .arc-product__panel-heading {
  border-color: var(--arc-product-border);
}

/* Specifications */
html.arcanum-dark body.single-product .arc-product__quick-spec {
  background: #071120;
  border-color: var(--arc-product-border);
  color: #cbd5e1;
}

html.arcanum-dark body.single-product .arc-product__quick-spec .arc-icon {
  color: #38bdf8;
}

html.arcanum-dark body.single-product .arc-product__attributes .woocommerce-product-attributes {
  background: transparent !important;
  border-color: var(--arc-product-border) !important;
}

html.arcanum-dark body.single-product .arc-product__attributes .woocommerce-product-attributes tr,
html.arcanum-dark body.single-product .arc-product__attributes .woocommerce-product-attributes-item {
  border-color: var(--arc-product-border) !important;
}

html.arcanum-dark body.single-product .arc-product__attributes .woocommerce-product-attributes-item__label {
  background: rgba(255, 255, 255, .045) !important;
  border-color: var(--arc-product-border) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body.single-product .arc-product__attributes .woocommerce-product-attributes-item__value {
  background: #071120 !important;
  border-color: var(--arc-product-border) !important;
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html.arcanum-dark body.single-product .arc-product__attributes .woocommerce-product-attributes-item__value :is(p, a) {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html.arcanum-dark body.single-product .arc-product__attributes .woocommerce-product-attributes-item__value a {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
}

html.arcanum-dark body.single-product .arc-product__empty-state {
  background: rgba(255, 255, 255, .045);
  border-color: var(--arc-product-border);
  color: #94a3b8;
}

/* Description */
html.arcanum-dark body.single-product .arc-product__description-lead {
  background: rgba(14, 165, 233, .10);
  border-color: rgba(125, 211, 252, .18);
  color: #cbd5e1;
}

html.arcanum-dark body.single-product .arc-product__description-lead :is(p, li, span, strong, b) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html.arcanum-dark body.single-product .arc-product__description-box {
  background: #071120;
  border-color: var(--arc-product-border);
}

html.arcanum-dark body.single-product .arc-product__description-content,
html.arcanum-dark body.single-product .arc-product__description-content :is(p, li, td, figcaption, blockquote) {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html.arcanum-dark body.single-product .arc-product__description-content :is(h2, h3, h4, h5, strong, b) {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body.single-product .arc-product__description-content a {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
}

html.arcanum-dark body.single-product .arc-product__description-content :is(ul li, ol li) {
  background: rgba(255, 255, 255, .045);
  border-color: var(--arc-product-border);
}

html.arcanum-dark body.single-product .arc-product__description-content blockquote {
  background: rgba(14, 165, 233, .08);
  border-color: #38bdf8;
}

html.arcanum-dark body.single-product .arc-product__description-content table {
  background: #071120 !important;
  border-color: var(--arc-product-border) !important;
}

html.arcanum-dark body.single-product .arc-product__description-content table :is(th, td) {
  border-color: var(--arc-product-border) !important;
}

html.arcanum-dark body.single-product .arc-product__description-content table th {
  background: rgba(255, 255, 255, .055) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body.single-product .arc-product__description-content table td {
  background: #071120 !important;
}

html.arcanum-dark body.single-product .arc-product__description-fade {
  background: linear-gradient(180deg, rgba(7, 17, 32, 0), #071120 82%);
}

html.arcanum-dark body.single-product .arc-product__description-toggle {
  background: rgba(14, 165, 233, .12);
  border-color: rgba(125, 211, 252, .20);
  color: #7dd3fc;
}

html.arcanum-dark body.single-product .arc-product__description-toggle:hover,
html.arcanum-dark body.single-product .arc-product__description-toggle:focus-visible {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

/* Native WooCommerce reviews */
html.arcanum-dark body.single-product .arc-product__reviews,
html.arcanum-dark body.single-product .arc-product__reviews .woocommerce-Reviews {
  color: #cbd5e1;
}

html.arcanum-dark body.single-product .arc-product__reviews :is(.woocommerce-Reviews-title, .comment-reply-title, h2, h3) {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body.single-product .arc-product__reviews :is(p, label, .comment-text, .description) {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html.arcanum-dark body.single-product .arc-product__reviews .comment_container,
html.arcanum-dark body.single-product .arc-product__reviews .comment-text,
html.arcanum-dark body.single-product .arc-product__reviews #review_form_wrapper {
  background: #071120;
  border-color: var(--arc-product-border) !important;
  box-shadow: none;
}

html.arcanum-dark body.single-product .arc-product__reviews :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select) {
  background: #050b16 !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  color-scheme: dark;
}

html.arcanum-dark body.single-product .arc-product__reviews :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select)::placeholder {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
}

html.arcanum-dark body.single-product .arc-product__reviews .stars a,
html.arcanum-dark body.single-product .arc-product__reviews .star-rating,
html.arcanum-dark body.single-product .arc-product__reviews .star-rating::before {
  color: #fbbf24 !important;
}

html.arcanum-dark body.single-product .arc-product__reviews input[type="submit"],
html.arcanum-dark body.single-product .arc-product__reviews button[type="submit"] {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: transparent !important;
}

/* Related products */
html.arcanum-dark body.single-product .arc-product__related-header p {
  color: #94a3b8;
}

html.arcanum-dark body.single-product .arc-product__related-all {
  background: rgba(255, 255, 255, .05);
  border-color: var(--arc-product-border);
  color: #e0f2fe;
}

html.arcanum-dark body.single-product .arc-product__related-all:hover,
html.arcanum-dark body.single-product .arc-product__related-all:focus-visible {
  background: rgba(14, 165, 233, .14);
  border-color: rgba(125, 211, 252, .25);
  color: #7dd3fc;
}

html.arcanum-dark body.single-product .arc-product-card {
  background: #071120;
  border-color: var(--arc-product-border);
  box-shadow: none;
}

html.arcanum-dark body.single-product .arc-product-card:hover {
  border-color: rgba(56, 189, 248, .28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

html.arcanum-dark body.single-product .arc-product-card__image-wrap {
  background:
    radial-gradient(circle at 50% 10%, rgba(14, 165, 233, .08), transparent 36%),
    #f8fafc;
  border-color: rgba(226, 232, 240, .88);
}

html.arcanum-dark body.single-product .arc-product-card__body h3 {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body.single-product .arc-product-card__image-link:hover + .arc-product-card__body h3,
html.arcanum-dark body.single-product .arc-product-card__body > a:hover h3 {
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
}

html.arcanum-dark body.single-product .arc-product-card__price,
html.arcanum-dark body.single-product .arc-product-card__price :is(.price, .amount, bdi, ins, ins *) {
  color: #e0f2fe !important;
  -webkit-text-fill-color: #e0f2fe !important;
}

html.arcanum-dark body.single-product .arc-product-card__price del,
html.arcanum-dark body.single-product .arc-product-card__price del * {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  text-decoration-color: #fb7185 !important;
}

html.arcanum-dark body.single-product .arc-product-card__cta {
  background: rgba(14, 165, 233, .12);
  border-color: rgba(125, 211, 252, .18);
  color: #7dd3fc;
}

html.arcanum-dark body.single-product .arc-product-card__cta:hover,
html.arcanum-dark body.single-product .arc-product-card__cta:focus-visible {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

/* WooCommerce notices that appear immediately above this custom shell. */
html.arcanum-dark body.single-product .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info) {
  background: rgba(14, 165, 233, .10) !important;
  border-color: rgba(56, 189, 248, .22) !important;
  color: #e0f2fe !important;
  -webkit-text-fill-color: #e0f2fe !important;
}

html.arcanum-dark body.single-product .woocommerce-notices-wrapper .woocommerce-error {
  background: rgba(244, 63, 94, .10) !important;
  border-color: rgba(253, 164, 175, .20) !important;
  color: #fda4af !important;
  -webkit-text-fill-color: #fda4af !important;
}

@media (max-width: 767px) {
  html.arcanum-dark body.single-product :is(
    .arc-product__hero,
    .arc-product__details,
    .arc-product__related
  ) {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
  }

  html.arcanum-dark body.single-product :is(
    .arc-product__gallery-card,
    .arc-product__buy-card,
    .arc-product__contact-note,
    .arc-product__panel,
    .arc-product-card
  ) {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.arcanum-dark body.single-product .arc-product *,
  html.arcanum-dark body.single-product .arc-product *::before,
  html.arcanum-dark body.single-product .arc-product *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 767px) {
  html.arcanum-dark body.single-product .arc-product__tabs {
    background: rgba(5, 11, 22, .96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  }
}


/* ----------------------------------------------------------------------
   V4 — icon / rich-description safety
------------------------------------------------------------------------ */
html.arcanum-dark body.single-product .arc-product .arc-icon {
  color: currentColor;
}

html.arcanum-dark body.single-product .arc-product__tab .arc-icon,
html.arcanum-dark body.single-product .arc-product__quick-spec .arc-icon,
html.arcanum-dark body.single-product .arc-product__description-toggle .arc-icon,
html.arcanum-dark body.single-product .arc-product__related-all .arc-icon,
html.arcanum-dark body.single-product .arc-product-card__cta .arc-icon,
html.arcanum-dark body.single-product .arc-product__contact-icon .arc-icon,
html.arcanum-dark body.single-product .arc-product__contact-button .arc-icon {
  color: currentColor !important;
}

html.arcanum-dark body.single-product .arc-product__description-content :is(
  .bg-white,
  .bg-gray-50,
  .bg-slate-50,
  .bg-zinc-50,
  .arc-product-long-description,
  .arc-product-long-description__section,
  .arc-product-long-description__card,
  .arc-product-long-description__box
) {
  background: #0b1626 !important;
  border-color: rgba(255, 255, 255, .10) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

html.arcanum-dark body.single-product .arc-product__description-content :is(
  h1, h2, h3, h4, h5, h6,
  .text-gray-900, .text-slate-900, .text-zinc-900,
  .text-gray-800, .text-slate-800, .text-zinc-800
) {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body.single-product .arc-product__description-content :is(
  p, li, td, th,
  .text-gray-700, .text-gray-600, .text-gray-500,
  .text-slate-700, .text-slate-600, .text-slate-500,
  .text-zinc-700, .text-zinc-600, .text-zinc-500
) {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}


/* ======================================================================
   V5 FINAL DARK FIXES
   - full price color lock (no WooCommerce green)
   - restored legacy description classes
   - compact short description
   - dark quantity controls
   - horizontal related products
====================================================================== */

/* PRICE — never green in dark mode. */
html.arcanum-dark body.single-product .arc-product__price,
html.arcanum-dark body.single-product .arc-product__price *,
html.arcanum-dark body.single-product .arc-product__price .price,
html.arcanum-dark body.single-product .arc-product__price p.price,
html.arcanum-dark body.single-product .arc-product__price ins,
html.arcanum-dark body.single-product .arc-product__price ins *,
html.arcanum-dark body.single-product .arc-product__price .woocommerce-Price-amount,
html.arcanum-dark body.single-product .arc-product__price .woocommerce-Price-amount *,
html.arcanum-dark body.single-product .arc-product__price .amount,
html.arcanum-dark body.single-product .arc-product__price .amount *,
html.arcanum-dark body.single-product .arc-product__price bdi,
html.arcanum-dark body.single-product .arc-product__price bdi * {
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  opacity: 1 !important;
}

html.arcanum-dark body.single-product .arc-product__price del,
html.arcanum-dark body.single-product .arc-product__price del * {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  text-decoration: line-through !important;
  text-decoration-color: #fb7185 !important;
}

html.arcanum-dark body.single-product .arc-product__price .woocommerce-Price-currencySymbol {
  color: #bae6fd !important;
  -webkit-text-fill-color: #bae6fd !important;
}

/* QUANTITY — force native/theme white buttons to the Arcanum dark controls. */
html.arcanum-dark body.single-product .arc-product__purchase-form .quantity {
  overflow: hidden !important;
  background: #050b16 !important;
  border: 1px solid rgba(125, 211, 252, .18) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .quantity input.qty {
  background: #050b16 !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .quantity :is(
  button,
  .arc-qty__btn,
  .plus,
  .minus
) {
  background: #0b1626 !important;
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .quantity :is(
  button,
  .arc-qty__btn,
  .plus,
  .minus
):hover,
html.arcanum-dark body.single-product .arc-product__purchase-form .quantity :is(
  button,
  .arc-qty__btn,
  .plus,
  .minus
):focus-visible {
  background: rgba(14, 165, 233, .16) !important;
  color: #bae6fd !important;
  -webkit-text-fill-color: #bae6fd !important;
}

html.arcanum-dark body.single-product .arc-product__purchase-form .quantity :is(
  button,
  .arc-qty__btn,
  .plus,
  .minus
) svg,
html.arcanum-dark body.single-product .arc-product__purchase-form .quantity .arc-qty__icon {
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
}

/* SHORT DESCRIPTION — quiet, readable, no bright/white card. */
html.arcanum-dark body.single-product :is(
  .arcanum-product-description-lead,
  .arc-product__description-lead
) {
  margin: 0 0 18px !important;
  padding: 12px 15px !important;
  background: rgba(255, 255, 255, .035) !important;
  border: 0 !important;
  border-right: 3px solid #38bdf8 !important;
  border-radius: 12px !important;
  color: #b8c5d6 !important;
  -webkit-text-fill-color: #b8c5d6 !important;
  box-shadow: none !important;
  filter: none !important;
}

html.arcanum-dark body.single-product :is(
  .arcanum-product-description-lead,
  .arc-product__description-lead
) :is(p, li, span, strong, b, a) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

/* RELATED — scrollable everywhere, with blue/white pricing. */
html.arcanum-dark body.single-product .arc-product__related-slider {
  display: flex !important;
  grid-template-columns: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-color: rgba(56, 189, 248, .55) rgba(255, 255, 255, .06);
}

html.arcanum-dark body.single-product .arc-product-card {
  flex: 0 0 clamp(235px, 23%, 282px) !important;
  min-width: 235px !important;
}

html.arcanum-dark body.single-product .arc-product-card__price,
html.arcanum-dark body.single-product .arc-product-card__price *,
html.arcanum-dark body.single-product .arc-product-card__price :is(.price, ins, ins *, .amount, .woocommerce-Price-amount, bdi) {
  color: #e0f2fe !important;
  -webkit-text-fill-color: #e0f2fe !important;
}

html.arcanum-dark body.single-product .arc-product-card__price del,
html.arcanum-dark body.single-product .arc-product-card__price del * {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  text-decoration-color: #fb7185 !important;
}

@media (max-width: 767px) {
  html.arcanum-dark body.single-product .arc-product__related-slider {
    scrollbar-width: none;
  }

  html.arcanum-dark body.single-product .arc-product__related-slider::-webkit-scrollbar {
    display: none;
  }

  html.arcanum-dark body.single-product .arc-product-card {
    flex-basis: min(78vw, 280px) !important;
    min-width: min(78vw, 280px) !important;
  }
}

@media (max-width: 390px) {
  html.arcanum-dark body.single-product .arc-product-card {
    flex-basis: min(82vw, 270px) !important;
    min-width: min(82vw, 270px) !important;
  }
}

/* ======================================================================
   V7 — DESCRIPTION SAFE DARK MODE
   IMPORTANT: No internal product-description class gets layout overrides.
   Existing product HTML keeps exactly its own spacing, grids and cards.
   We only adjust outer shell + semantic text colors for dark readability.
====================================================================== */
html.arcanum-dark body.single-product #arc-panel-description {
  color: #cbd5e1;
}

/* Outer wrapper only — do not style internal custom description classes. */
html.arcanum-dark body.single-product #arc-panel-description > .arc-product__panel-heading {
  color: #f8fafc;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Short description is separate from the rich long-description HTML. */
html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-lead {
  margin: 0 0 18px !important;
  padding: 12px 15px !important;
  border: 0 !important;
  border-right: 3px solid #38bdf8 !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.035) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-lead :is(p, li, span, strong, b, a) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

/* Collapse mechanics only. No padding/margin/display rules for its children. */
html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-content {
  position: relative;
  max-height: 680px;
  overflow: hidden;
  color: #cbd5e1;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-box.is-open .arcanum-product-description-content {
  max-height: none;
  overflow: visible;
}

/* Color-only overrides. These DO NOT touch layout, spacing or backgrounds. */
html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-content :where(p, li, td, figcaption, blockquote) {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-content :where(h1, h2, h3, h4, h5, h6, strong, b) {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-content a {
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-content img {
  max-width: 100% !important;
  height: auto !important;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-fade {
  position: absolute;
  right: 0;
  bottom: 62px;
  left: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,11,22,0), #050b16 82%) !important;
  transition: opacity .2s ease;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-box.is-open .arcanum-product-description-fade {
  opacity: 0 !important;
  visibility: hidden !important;
}

html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-toggle {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid rgba(125,211,252,.20) !important;
  border-radius: 14px;
  background: rgba(14,165,233,.11) !important;
  color: #7dd3fc !important;
  -webkit-text-fill-color: #7dd3fc !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 767px) {
  html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-content {
    max-height: 540px;
  }

  html.arcanum-dark body.single-product #arc-panel-description .arcanum-product-description-fade {
    bottom: 60px;
    height: 76px;
  }
}
/* =========================================================
   ARCANUM — MOBILE DARK QUANTITY FIX
   فقط کنترل تعداد در موبایل
========================================================= */

@media (max-width: 767px) {

  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form .quantity {

    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
    height: 48px !important;

    margin: 0 auto 10px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* ترتیب استاندارد: -  1  + */
    direction: ltr !important;

    overflow: hidden !important;

    border-radius: 15px !important;

    background: #071120 !important;
    border: 1px solid rgba(125, 211, 252, .18) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.025) !important;
  }


  /* عدد وسط */
  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form .quantity input.qty {

    order: 2 !important;

    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 46px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.07) !important;
    border-left: 1px solid rgba(255,255,255,.07) !important;

    border-radius: 0 !important;

    background: #081525 !important;

    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;

    text-align: center !important;

    font-size: 15px !important;
    font-weight: 900 !important;

    line-height: 46px !important;

    box-shadow: none !important;
    outline: none !important;

    appearance: textfield !important;
    -moz-appearance: textfield !important;
  }


  /* حذف فلش عدد */
  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity input.qty::-webkit-inner-spin-button,

  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity input.qty::-webkit-outer-spin-button {

    -webkit-appearance: none !important;
    margin: 0 !important;
  }


  /* هر دو دکمه */
  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity .arc-qty__btn,

  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity button.plus,

  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity button.minus {

    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;

    height: 46px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;

    box-shadow: none !important;

    cursor: pointer !important;

    transition:
      background .18s ease,
      color .18s ease,
      transform .18s ease !important;
  }


  /* منفی سمت چپ */
  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity .arc-qty__btn--minus,

  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity button.minus {

    order: 1 !important;
  }


  /* مثبت سمت راست */
  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity .arc-qty__btn--plus,

  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity button.plus {

    order: 3 !important;
  }


  /* SVG مثبت و منفی */
  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity .arc-qty__icon {

    width: 18px !important;
    height: 18px !important;

    display: block !important;

    color: currentColor !important;

    stroke: currentColor !important;

    fill: none !important;
  }


  /* لمس / Hover */
  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity .arc-qty__btn:hover,

  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity .arc-qty__btn:focus-visible {

    background: rgba(14, 165, 233, .13) !important;

    color: #38bdf8 !important;
    -webkit-text-fill-color: #38bdf8 !important;
  }


  html.arcanum-dark body.single-product
  .arc-product .arc-product__purchase-form
  .quantity .arc-qty__btn:active {

    background: rgba(14, 165, 233, .20) !important;

    transform: scale(.92) !important;
  }
}