/* PUVARLI 6.8 — one final, site-wide contrast pass for the white theme.
   Loaded LAST (linked in header.php after global-white-v58 / account-white-v59).
   Root cause it fixes: the theme began dark, so many original light-grey text
   colors (#aaa, #c8c8cc, #ddd, #fff ...) survived on pages that are now white.
   Instead of patching one selector at a time, every inner page (all of which
   render inside <main class="wrap">) gets near-black text by default, with a
   small set of explicit exceptions (buttons, muted text) below.
   Palette: #111 main text (18:1), #555 secondary text (7.5:1), #767676 borders. */

/* (v6.8.1) The blanket near-black rule was removed: some pages keep dark panels
   (track-order, login/register, footer). assets/contrast-guard.js now measures real
   backgrounds and only repairs text that is actually unreadable. */

/* 2. Secondary text: still clearly readable dark grey, never light grey. */
html body main.wrap :is(
  .product_meta,.product_meta *,
  .pv-shipping-note span,
  .woocommerce-result-count,
  .woocommerce-breadcrumb,.woocommerce-breadcrumb a,
  .pv-cart-heading p,.pv-empty-cart p,
  .woocommerce-tabs ul.tabs li:not(.active) a,
  del,del *,
  .pv-empty-cart .eyebrow
){color:#555!important;-webkit-text-fill-color:#555!important}
html body main.wrap .pv-cart-heading h1,
html body main.wrap .pv-empty-cart h1{color:#111!important;-webkit-text-fill-color:#111!important}

/* 3. Pseudo-element labels the default rule cannot reach. */
html body main.wrap .woocommerce-product-details__short-description::before{color:#555!important}
html body main.wrap :is(.woocommerce-info,.woocommerce-message,.woocommerce-error)::before{color:#111!important}

/* 4. Buttons: solid black with white text, everywhere (incl. Add to bag). */
html body main.wrap :is(a.button,button.button,input.button,input[type=submit],
  .single_add_to_cart_button,.checkout-button,#place_order,
  .wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.onsale),
html body main.wrap :is(a.button,button.button,input.button,
  .single_add_to_cart_button,.checkout-button,#place_order,
  .wc-block-components-button:not(.is-link),.wc-block-cart__submit-button) *{
  background-color:#111!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#111!important;opacity:1!important;
}
html body main.wrap :is(a.button,button.button,input.button,.single_add_to_cart_button,.checkout-button,#place_order):hover{
  background-color:#333!important;
}
/* Outline button (empty-bag "Explore the drop"). */
html body main.wrap a.pv-outline-button{background:#fff!important;border:1px solid #111!important;color:#111!important;-webkit-text-fill-color:#111!important}
html body main.wrap a.pv-outline-button:hover{background:#111!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* 5. Size pills: white pill / black text; selected = black pill / white text. */
html body main.wrap .pv-size-capsule{
  background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;
  border:1px solid #767676!important;opacity:1!important;
}
html body main.wrap .pv-size-capsule:hover,
html body main.wrap .pv-size-capsule:focus-visible{border-color:#111!important}
html body main.wrap .pv-size-capsule.is-selected{
  background:#111!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#111!important;
}
html body main.wrap .pv-size-capsule:disabled{
  background:#f3f3f3!important;color:#555!important;-webkit-text-fill-color:#555!important;
  border-color:#cfcfcf!important;opacity:1!important;text-decoration:line-through;
}

/* 6. Quantity stepper. */
html body main.wrap .quantity{background:#fff!important;border-color:#767676!important}
html body main.wrap .quantity .pv-qty-btn{background:transparent!important;color:#111!important;-webkit-text-fill-color:#111!important}
html body main.wrap .quantity .pv-qty-btn:hover{background:#eee!important}
html body main.wrap .quantity input.qty{background:transparent!important}

/* 7. Product tabs and panel (was a dark box with light text). */
html body main.wrap .woocommerce-tabs ul.tabs{border-bottom:1px solid #d9d9d9!important}
html body main.wrap .woocommerce-tabs ul.tabs li.active a{border-bottom:2px solid #111!important}
html body main.wrap .woocommerce-tabs .panel{background:#fff!important;border:1px solid #e5e5e5!important}

/* 8. Accordions, notices, cart/checkout surfaces: white, thin light borders. */
html body main.wrap .pv-product-accordions{border-top:1px solid #e5e5e5!important}
html body main.wrap :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){
  background:#fafafa!important;border-top-color:#111!important;
}
html body main.wrap :is(.pv-empty-cart,.cart_totals,#order_review,.woocommerce-checkout-review-order){
  background:#fff!important;border:1px solid #e5e5e5!important;
}
html body main.wrap table.shop_table,
html body main.wrap table.shop_table :is(th,td){border-color:#e5e5e5!important;background-color:transparent!important}

/* 9. Form fields (classic + block checkout). */
html body main.wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select),
html body main.wrap :is(.wc-block-components-text-input input,.wc-block-components-combobox-control input,.wc-block-components-textarea,.wc-block-components-form select){
  background:#fff!important;border:1px solid #767676!important;
}
html body main.wrap :is(input,textarea)::placeholder{color:#666!important;-webkit-text-fill-color:#666!important;opacity:1!important}
