/* ==========================================================================
   TRU HIKASHOP LEGACY STOREFRONT READABILITY PATCH
   What: Correct light text against light/default HikaShop backgrounds
   Purpose: Preserve TRU storefront styling while restoring readability
   Policy: Load after the legacy storefront skin
   ========================================================================== */


/* =========================================================
   01. GLOBAL READABLE DEFAULTS
========================================================= */

.hikashop_products,
.hikashop_subcategories,
.hikashop_category_information,
.hikashop_products_listing_main,
.hikashop_product_page,
.hikashop_product_list,
.hikashop_category_list,
#hikashop_checkout_cart,
#hikashop_cart_listing,
#hikashop_order_listing,
#hikashop_download_listing,
#hikashop_order_main,
#hikashop_affiliate_main,
#hikashop_entries_info,
#member-profile,
.hikashop_compare_page,
.hikashop_filter_fieldset,
.hika_comment_listing,
.hikashop_module_subblock_content,
.hikashop_menu_subblock_content {
  color: #1f2733 !important;
}


/* =========================================================
   02. PRODUCT / CATEGORY NAMES
   Remove transparent gradient text on light surfaces
========================================================= */

.hikashop_product_name,
.hikashop_category_name,
.hikashop_product_name_main,
.hikashop_product_name_in_list,
#hikashop_product_top_part h1,
.hikashop_category_information h2 {
  color: #18202a !important;
}

.hikashop_product_name a,
.hikashop_category_name a,
.hikashop_product_name_main,
.hikashop_product_name_main a,
.hikashop_product_name_in_list,
#hikashop_product_top_part h1,
.hikashop_category_information h2 {
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #18202a !important;
  color: #18202a !important;
  text-shadow: none !important;
}

.hikashop_product_name a:hover,
.hikashop_category_name a:hover,
.hikashop_product_name_main a:hover {
  color: #8a6a16 !important;
  -webkit-text-fill-color: #8a6a16 !important;
  text-shadow: none !important;
}


/* =========================================================
   03. PRODUCT / CATEGORY / META TEXT
========================================================= */

#hikashop_product_description_main,
.hikashop_category_desc,
.hikashop_product_code_list,
.hikashop_product_list_item a,
.hikashop_category_list_item a,
.hikashop_product_stock,
.hikashop_checkout_shipping_price_full,
.hikashop_checkout_payment_description,
.hikashop_checkout_billing_address_info,
.hikashop_address_content,
.hikashop_vote_notification,
.hikashop_vote_notification_mini,
.hikashop_total_vote,
.counter,
.hikashop_product_list li,
.hikashop_product_page p,
.hikashop_category_information p,
.hikashop_product_characteristics_table,
.hikashop_product_options_table {
  color: #2d3642 !important;
  opacity: 1 !important;
}


/* =========================================================
   04. GENERAL LINKS IN CONTENT AREAS
========================================================= */

.hikashop_product_page a,
.hikashop_category_information a,
.hikashop_product_list a,
.hikashop_category_list a,
#hikashop_order_main a,
#hikashop_checkout_cart a,
#hikashop_cart_listing a,
#hikashop_download_listing a,
#member-profile a {
  color: #1e4f7a !important;
}

.hikashop_product_page a:hover,
.hikashop_category_information a:hover,
.hikashop_product_list a:hover,
.hikashop_category_list a:hover,
#hikashop_order_main a:hover,
#hikashop_checkout_cart a:hover,
#hikashop_cart_listing a:hover,
#hikashop_download_listing a:hover,
#member-profile a:hover {
  color: #8a6a16 !important;
}


/* =========================================================
   05. INPUTS / SELECTS / FORM FIELDS
========================================================= */

#hikashop_checkout_coupon input,
#hikashop_checkout_login_left_part input,
#hikashop_checkout_login_right_part input,
#hikashop_checkout_login_left_part select,
#hikashop_checkout_login_right_part select,
#hikashop_checkout_address select,
#hikashop_checkout_billing_address_zone select,
#hikashop_checkout_shipping_address_zone select,
#hikashop_checkout_billing_address_zone input,
#hikashop_checkout_shipping_address_zone input,
.hikashop_product_characteristics_table select,
.hikashop_product_options_table select,
.hikashop_showcart_infos input,
.hikashop_showcart_infos select,
#member-profile input,
#member-profile select,
.hikashop_comment_form input,
.hikashop_vote_form .hikashop_comment_textarea,
.hikashop_filter_Filtre select,
.hikashop_products_pagination .list-footer .limit .inputbox,
.pagination .inputbox,
.hikashop_currency_module select,
.hikashop_product_quantity_field,
textarea {
  background: #fffdfa !important;
  border: 1px solid rgba(70,84,102,0.22) !important;
  color: #1f2733 !important;
}

#hikashop_checkout_coupon input::placeholder,
#hikashop_checkout_login_left_part input::placeholder,
#hikashop_checkout_login_right_part input::placeholder,
#hikashop_checkout_billing_address_zone input::placeholder,
#hikashop_checkout_shipping_address_zone input::placeholder,
#member-profile input::placeholder,
.hikashop_comment_form input::placeholder,
.hikashop_vote_form .hikashop_comment_textarea::placeholder,
.hikashop_product_quantity_field::placeholder,
textarea::placeholder {
  color: #667282 !important;
  opacity: 1 !important;
}


/* =========================================================
   06. PRODUCT PAGE PANELS / OPTIONS / ADDRESS BLOCKS
========================================================= */

#hikashop_product_characteristics,
#hikashop_product_options,
.address_selection,
#hikashop_checkout_selected_billing_address,
#hikashop_checkout_selected_shipping_address,
.hikashop_showcart_infos,
.hikashop_address_listing_item_details,
#hikashop_order_main .hikashop_order_left_part,
#hikashop_order_main #adminForm fieldset,
#hikashop_affiliate_main #adminForm fieldset,
#hikashop_entries_info fieldset,
#member-profile fieldset {
  background: #f5f0e8 !important;
  border: 1px solid rgba(90,70,25,0.14) !important;
  color: #1f2733 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}


/* =========================================================
   07. TABLES / CART / ORDER / DOWNLOADS / COMPARE
========================================================= */

#hikashop_checkout_cart table,
#hikashop_cart_listing table,
#hikashop_cart_product_listing,
#hikashop_order_listing table,
#hikashop_download_listing table,
#htmlfieldset_products table,
.hikashop_products_table,
.hikashop_compare_page table,
.hikashop_compare_table,
#hikashop_shipping_methods table,
#hikashop_payment_methods table {
  background: #f7f3ec !important;
  border: 1px solid rgba(90,70,25,0.14) !important;
  color: #1f2733 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}

#hikashop_checkout_cart th,
#hikashop_cart_listing th,
#hikashop_cart_product_listing th,
#hikashop_order_listing th,
#hikashop_download_listing th,
#htmlfieldset_products th,
.hikashop_products_table thead th {
  background: #ede4d6 !important;
  color: #5b4410 !important;
  border-bottom: 1px solid rgba(40,52,68,0.10) !important;
  text-shadow: none !important;
}

#hikashop_checkout_cart td,
#hikashop_cart_listing td,
#hikashop_cart_product_listing td,
#hikashop_order_listing td,
#hikashop_download_listing td,
#htmlfieldset_products td,
.hikashop_products_table td {
  border-bottom: 1px solid rgba(40,52,68,0.08) !important;
  color: #1f2733 !important;
}

#hikashop_checkout_cart .row0:hover,
#hikashop_checkout_cart .row1:hover,
#hikashop_order_listing .row0:hover,
#hikashop_order_listing .row1:hover,
#hikashop_cart_listing .row0:hover,
#hikashop_cart_listing .row1:hover,
#hikashop_cart_product_listing .row0:hover,
#hikashop_cart_product_listing .row1:hover,
#htmlfieldset_products .row0:hover,
#htmlfieldset_products .row1:hover,
#hikashop_shipping_methods .row0:hover,
#hikashop_shipping_methods .row1:hover,
#hikashop_payment_methods .row0:hover,
#hikashop_payment_methods .row1:hover {
  background: rgba(20,30,40,0.03) !important;
}


/* =========================================================
   08. TABS
========================================================= */

.hikashop_tabs_ul li {
  background: #efe7da !important;
  border: 1px solid rgba(90,70,25,0.14) !important;
}

.hikashop_tabs_ul li a,
.hikashop_tabs_ul li a:hover {
  color: #1f2733 !important;
}

.hikashop_tabs_content {
  background: #f5f0e8 !important;
  border: 1px solid rgba(90,70,25,0.14) !important;
  color: #1f2733 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}

.hikashop_tabs_li_selected {
  background: #e9dfcf !important;
  border-color: rgba(90,70,25,0.18) !important;
}

.hikashop_tabs_li_selected a {
  color: #7a5a10 !important;
}


/* =========================================================
   09. WIZARD / CHECKOUT STEP BAR
========================================================= */

.hikashop_wizardbar,
.hikashop_cart_bar {
  background: #f5f0e8 !important;
  border: 1px solid rgba(90,70,25,0.14) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
}

.hikashop_wizardbar ul li {
  background: #efe7da !important;
  color: #1f2733 !important;
}

.hikashop_wizardbar ul li a {
  color: #1f2733 !important;
}

.hikashop_wizardbar ul li.hikashop_cart_step_current {
  background: rgba(255,214,92,0.18) !important;
  color: #7a5a10 !important;
}

.hikashop_wizardbar ul li.hikashop_cart_step_finished {
  background: rgba(0,140,170,0.10) !important;
  color: #1e4f7a !important;
}


/* =========================================================
   10. FILTERS / PAGINATION / ACCORDIONS / SIDE PANELS
========================================================= */

.hikashop_filter_fieldset,
.pane-sliders .panel,
.accordion-heading,
.hikashop_module_subblock_content,
.hikashop_menu_subblock_content {
  background: #f5f0e8 !important;
  border: 1px solid rgba(90,70,25,0.14) !important;
  color: #1f2733 !important;
}

.hikashop_filter_fieldset legend,
.hikashop_filter_title,
.pane-sliders .title,
.accordion-heading .title,
.hikashop_menu_subblock_title,
.hikashop_module_subblock_title {
  color: #7a5a10 !important;
  text-shadow: none !important;
}

.list-footer span.pagenav,
.list-footer a.pagenav,
.pagenav_previous_chevron,
.pagenav_start_chevron,
.pagenav_next_chevron,
.pagenav_end_chevron {
  background: #fffdfa !important;
  border: 1px solid rgba(70,84,102,0.22) !important;
  color: #1f2733 !important;
}

.list-footer a.pagenav:hover,
.list-footer span.pagenav:hover {
  color: #8a6a16 !important;
  text-decoration: none !important;
}


/* =========================================================
   11. COMMENTS / RATINGS / REVIEWS
========================================================= */

.hika_comment_listing {
  background: #f5f0e8 !important;
  border: 1px solid rgba(90,70,25,0.14) !important;
  color: #1f2733 !important;
}

.hika_comment_listing:hover {
  border-color: rgba(90,70,25,0.22) !important;
}

.hika_comment_listing_name,
.hikashop_listing_comment,
.hikashop_form_comment {
  color: #7a5a10 !important;
}

.hika_comment_listing_content {
  background: rgba(20,30,40,0.03) !important;
  color: #2d3642 !important;
}


/* =========================================================
   12. ACCOUNT / PROFILE / ADDRESS / MEMBER AREAS
========================================================= */

#member-profile,
#member-profile fieldset,
.hikashop_address_listing_item_details,
.hikashop_checkout_billing_address_info,
.hikashop_address_content {
  color: #1f2733 !important;
}


/* =========================================================
   13. PRICES
   Keep prices prominent but readable
========================================================= */

span.hikashop_product_price,
span.hikashop_product_price_full,
.hikashop_option_price_value,
.hikashop_checkout_cart_shipping,
.hikashop_checkout_cart_subtotal,
span.hikashop_checkout_cart_taxes,
span.hikashop_checkout_cart_final_total,
#htmlfieldset_products .hikashop_order_item_total_value,
#htmlfieldset_products .hikashop_order_subtotal_value,
#htmlfieldset_products .hikashop_order_shipping_value,
#htmlfieldset_products .hikashop_order_total_value,
.hikashop_order_tax_value,
.hika_show_cart_total_price {
  color: #7a5a10 !important;
  text-shadow: none !important;
}


/* =========================================================
   14. BUTTONS
   Keep buttons dark so cyan/gold contrast still works
========================================================= */

a.hikashop_cart_button,
a.hikashop_compare_button,
.hikashop_cart_input_button,
#member-profile .validate,
#member-profile a,
#hikashop_carts_listing div.toolbar a,
#hikashop_affiliate_main div.toolbar a,
#hikashop_address_listing div.toolbar a,
#hikashop_order_listing div.toolbar a {
  color: #e7faff !important;
}


/* =========================================================
   15. MOBILE
========================================================= */

@media (max-width: 760px) {
  .hikashop_product_name a,
  .hikashop_category_name a,
  .hikashop_product_name_main,
  .hikashop_product_name_main a,
  #hikashop_product_top_part h1,
  .hikashop_category_information h2 {
    color: #18202a !important;
    -webkit-text-fill-color: #18202a !important;
  }

  #hikashop_product_description_main,
  .hikashop_category_desc,
  .hikashop_product_list li,
  .hikashop_category_list_item a {
    color: #2d3642 !important;
    opacity: 1 !important;
  }
}