/*
Theme Name: Preston Child Theme
Theme URI: https://preston.axiomthemes.com/
Description: Preston - excellent WordPress theme with many different blog and header layouts
Author: AxiomThemes
Author URI: https://axiomthemes.com/
Version: 1.1.10.1
Tested up to: 6.8.1
Requires at least: 5.5
Requires PHP: 7.4
EV: 1.0.07
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
Text Domain: preston
Template: preston
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Kalnia:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

html body, html body p, html body .vc_column_text,
html body .menu_main_nav a, html body input, html body textarea,
html body button, html body .sc_layouts_row, html body .trx_addons_text {
    font-family: 'Montserrat', sans-serif !important;
}

html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .sc_item_title, html body .trx_addons_title, html body .sc_layouts_title,
html body .post_title, html body .widget_title, html body h5.widget_title,
html body .logo_text, html body .sc_item_subtitle {
    font-family: 'Kalnia', serif !important;
}

.dci-specs-wrap { clear: both; width: 100%; float: none; margin: 40px 0; }
.dci-specs-title { width: 100%; white-space: normal; word-break: normal; margin-bottom: 12px; }

.dci-specs-table { width: 100%; border-collapse: collapse; }
.dci-specs-table th { background: #A72C32; color: #fff; text-align: left; padding: 12px 16px; }
.dci-specs-table td { padding: 12px 16px; border-bottom: 1px solid #e2e2e2; color: #000; }
.dci-specs-table tr:nth-child(even) td { background: #f5f5f5; }
/* Dark gradient overlay so white text is readable on photos */
.sc_action_item.sc_action_banner,
[class*="sc_action"][class*="banner"] {
    position: relative !important;
}
.sc_action_item.sc_action_banner:before,
[class*="sc_action"][class*="banner"]:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 100%);
    z-index: 1;
    border-radius: 14px;
    pointer-events: none;
}
/* Put all card content above the overlay */
.sc_action_item.sc_action_banner > *,
[class*="sc_action"][class*="banner"] > * {
    position: relative !important;
    z-index: 2 !important;
}
/* Make sure the EXPLORE button shows */
.sc_action_item.sc_action_banner .sc_button,
[class*="sc_action"][class*="banner"] .sc_button {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 15px !important;
}

.sc_action_item_mc{
display: none; !important}

/* Highlight the active category in the sidebar */
.widget_product_categories li.current-cat > a,
.widget_product_categories li.current-cat-parent > a {
    color: #A72C32 !important;
    font-weight: 700 !important;
}
.widget_product_categories li.current-cat {
    border-left: 3px solid #A72C32 !important;
    padding-left: 8px !important;
}
.scheme_default .sc_action_banner .sc_item_title, .scheme_default .sc_action_banner .sc_item_subtitle, .scheme_default .sc_action_banner .sc_item_descr {
    margin-top: 41px;
}

/* Remove rounded corners from single images */
.vc_single_image-wrapper.vc_box_border_grey img {
    border-radius: 0 !important;
}

.logo_footer_wrap_inner img {
    max-width: 7%;
}

.scheme_dark .logo_footer_wrap_inner:after {
     background-color: #000000; 
}

/* Align category capability blocks - equal height, buttons aligned */
.wpb_row .vc_row-fluid .wpb_column > .vc_column-inner > .wpb_wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Give each category title block a consistent min-height so buttons line up */
.sc_item_title + .sc_item_descr, .sc_item_subtitle + .sc_item_descr, .sc_item_title + .sc_item_slider, .sc_item_subtitle + .sc_item_slider, .sc_item_descr + .sc_item_slider, .sc_item_title + .sc_item_columns, .sc_item_subtitle + .sc_item_columns, .sc_item_descr + .sc_item_columns, .sc_item_title + .sc_item_content, .sc_item_subtitle + .sc_item_content, .sc_item_descr + .sc_item_content {
}

.sc_item_title + .sc_item_descr, .sc_item_subtitle + .sc_item_descr, .sc_item_descr + .sc_item_slider, .sc_item_title + .sc_item_columns, .sc_item_subtitle + .sc_item_columns, .sc_item_descr + .sc_item_columns, .sc_item_title + .sc_item_content, .sc_item_subtitle + .sc_item_content, .sc_item_descr + .sc_item_content {
    margin-top: 0.5rem;
    min-height: 112px;
}

/* CF7 submit button - maroon */
/* Override Preston's green button gradient on the CF7 submit button */
.scheme_dark .sc_button_hover_slide_left.dci-submit,
.scheme_dark input.wpcf7-submit.sc_button_hover_slide_left,
.scheme_dark .wpcf7-submit,
.sc_button_hover_slide_left.dci-submit {
    background: #A72C32 !important;
    background-image: none !important;
    border-color: #A72C32 !important;
    color: #fff !important;
}

/* Hover state */
.scheme_dark .sc_button_hover_slide_left.dci-submit:hover,
.scheme_dark input.wpcf7-submit.sc_button_hover_slide_left:hover,
.sc_button_hover_slide_left.dci-submit:hover {
    background: #8a2429 !important;
    background-image: none !important;
    color: #fff !important;
}

.scheme_dark input[type="text"], .scheme_dark input[type="number"], .scheme_dark input[type="email"], .scheme_dark input[type="tel"], .scheme_dark input[type="password"], .scheme_dark .select_container, .scheme_dark .select_container:before, .scheme_dark .select2-container .select2-choice, .scheme_dark .select2-container .select2-selection, .scheme_dark textarea, .scheme_dark textarea.wp-editor-area, .scheme_dark .woocommerce form .form-row .input-text, .scheme_dark .woocommerce form .form-row select {
    color: #050505;
    border-color: #f0ecea;
    background-color: #000000;
}
/* Force Kalnia on the page caption / breadcrumb title */
html body .page_caption,
html body h1.page_caption,
html body .top_panel_title .page_caption,
html body .breadcrumbs,
html body .breadcrumbs_item {
    font-family: 'Kalnia', serif !important;
}

.top_panel_title .page_caption {
    color: #ffffff;
    display: none !important;
}
.multi_cat{
	color: #000000;
}



.scheme_default .top_panel_title_wrap {
    background-color: #a72c32;
    border-radius: 35px;
}

body .scheme_dark .sc_button.sc_button_hover_slide_left {
  background: #8a2429 !important;
  background-image: none !important;
}

body .scheme_dark .sc_button.sc_button_hover_slide_left:hover {
  background: #000000 !important;
  background-image: none !important;
}

.scheme_default .woocommerce ul.products li.product .price, .scheme_default .woocommerce-page ul.products li.product .price, .scheme_default .woocommerce ul.products li.product .price ins, .scheme_default .woocommerce-page ul.products li.product .price ins
Specificity: (0,5,3)
 {
    color: #000000;
    display: none !important;
}

/* DCI spec list — flows with SKU/Category */
.dci-specs-wrap {
  margin-top: 8px;
}
.dci-spec-row {
  display: block;
  padding: 2px 0;
  font-size: 14px;
}
.dci-spec-label {
  font-weight: 600;
  color: inherit;
}
.dci-spec-label::after {
  content: ": ";
}
.dci-spec-value {
  font-weight: 400;
  color: inherit;
}

/* Safety net: hide the tabs area entirely if anything remains */
.woocommerce-tabs.wc-tabs-wrapper,
#tab-description,
#tab-reviews,
.woocommerce-Reviews {
  display: none !important;
}

/* Fix broken Related Products heading layout */
.related.products {
  clear: both;
  width: 100%;
  display: block;
  margin-top: 40px;
}
.related.products > h2,
.related.products > .sc_item_title {
  writing-mode: horizontal-tb !important;
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  text-align: center;
  margin-bottom: 20px;
}
.single-product div.product {
  overflow: visible;
}

/* Hide Product ID line */
.single-product .product_meta .post_id,
.single-product .product_meta .sku_wrapper + .posted_in + .tagged_as,
.single-product .product_meta > span:has(a[href*="product_id"]) {
  display: none;
}

/* Bold all meta labels: SKU, Category, and DCI spec labels */
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.dci-spec-label {
  font-weight: 700 !important;
	text-transform: capitalize !important; 
}

/* Capitalize category text */
.posted_in {
    color: #a72c32;
    text-transform: capitalize !important;
}

/* Force capitalize category — target the link with high specificity */
html body .single-product .product_meta .posted_in,
html body .single-product .product_meta .posted_in a,
html body .product_meta .posted_in,
html body .product_meta .posted_in a {
  text-transform: capitalize !important;
  color: #a72c32;
}
/* Hide Product ID line */
.single-product .product_meta .post_id,
.single-product .product_meta .product_id {
  display: none !important;
}

.dci-product-desc {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.dci-product-desc p {
  margin-bottom: 10px;
}

/* Force Kalnia on Slider Revolution heading split text */
#rev_slider_1_1 .rs_splitted_chars,
#rev_slider_1_1 .rs_splitted_words,
#rev_slider_1_1 .rs_splitted_lines,
.rev_slider .rs_splitted_chars,
.rev_slider .tp-caption,
rs-layer.rs-splitted,
rs-layer .rs_splitted_chars {
  font-family: 'Kalnia', serif !important;
}

/* Product card READ MORE button — black text, maroon on hover */
.woocommerce ul.products li.product .post_data .button.product_type_simple,
.woocommerce ul.products li.product .post_data a.button,
.woocommerce-page ul.products li.product .post_data a.button {
  color: #000000 !important;
  background: transparent !important;
}

.woocommerce ul.products li.product .post_data .button.product_type_simple:hover,
.woocommerce ul.products li.product .post_data a.button:hover,
.woocommerce-page ul.products li.product .post_data a.button:hover {
  color: #A72C32 !important;
  background: transparent !important;
}