/**
 * Theme Name: Rey Child
 * Theme URI: http://reytheme.com/
 * Description: This is a child theme of Rey.
 * Author: Marius H.
 * Author URI:  https://twitter.com/mariushoria
 * Template: rey
 * Version: 1.0.0
 * License: General Public License
 * License URI: http://www.gnu.org/licenses/gpl.html
 * Text Domain: rey-child
 */

/* --e-global-color-primary: #2F2A24;     // Dark Black (headings)
--e-global-color-secondary: #3D3630;   // Lighter Black (text)
--e-global-color-text: #3D3630;        // Lighter Black (text)
--e-global-color-accent: #C9A86A;      // Main Gold Accent colour
--e-global-color-34e1ff2: #2F2A24;     // Repeat of dark black
--e-global-color-424a443: #3D3630;     // Repeat of lighter black
--e-global-color-9e8ae71: #F8F4ED;     // Light Wheat
--e-global-color-4c71201: #F2EBDD;     // Stronger wheat
--e-global-color-2cf4bb0: #C9A86A;     // Accent again
--e-global-color-15ba3e2: #A88452;     // Gold Accent Hover
--e-global-color-f05441f: #C97C5D;     // Copper - rarely used */

body {
    --woocommerce-discount-color: #C9A86A;
}

/* =========================
   Consistent Theming
========================= */

/* Subtitle consistency (Helvetica) */
h2.woocommerce-loop-product__title a,
.rey-cartPanel .woocommerce-mini-cart .woocommerce-mini-cart-item .woocommerce-mini-cart-item-title,
.rey-accountPanel .woocommerce-MyAccount-navigation-wrapper a,
.splide__slide a {
    font-family: var(--e-global-typography-accent-font-family);
    font-size: var(--e-global-typography-c1cdc0a-font-size) !important;
    font-weight: var(--e-global-typography-c1cdc0a-font-weight);
    text-transform: var(--e-global-typography-c1cdc0a-text-transform);
    letter-spacing: 2px;
    color: var(--e-global-color-34e1ff2);
}

/* Title Consistency (Carmarond) */
.rey-accountPanel-wrapper[data-layout=offcanvas] .rey-accountPanel .rey-accountPanel-title, 
.rey-accountPanel-wrapper[data-layout=offcanvas] .rey-accountPanel .rey-wishlistPanel-title,
:is(.related.products,.upsells.products,.crosssells.products,.rey-extra-products)>h2,
#customer_login h2, #customer_login+.col-2 h2 {
    font-weight: 500;
    text-transform: capitalize;
    font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
}
/* H2 Font Size */
:is(.related.products,.upsells.products,.crosssells.products,.rey-extra-products)>h2,
#customer_login h2, #customer_login+.col-2 h2 {
    font-size: var(--h2-font-size);
}
/* H3 Font Size */
.rey-accountPanel-wrapper[data-layout=offcanvas] .rey-accountPanel .rey-accountPanel-title, 
.rey-accountPanel-wrapper[data-layout=offcanvas] .rey-accountPanel .rey-wishlistPanel-title {
    font-size: var(--h3-font-size);
}

/* Body font styles */
.rey-cartPanel .woocommerce-mini-cart__total .minicart-total-row .minicart-total-row-head,
.rey-crossSells-carousel.splide .rey-crossSells-carousel-title,
.rey-cartPanel .woocommerce-mini-cart__total .minicart-total-row .minicart-total-row-content,
.rey-cartPanel .woocommerce-mini-cart__total .woocommerce-Price-amount,
.rey-cartPanel .rey-cartPanel-title a,
div.product .rey-pSubtitle.--pos-after_title {
    font-family: var(--e-global-typography-accent-font-family);
    text-transform: capitalize !important;
    font-weight: 500;
    font-size: .9rem;
    color: var(--e-global-color-34e1ff2);
}
.rey-cartPanel .woocommerce-mini-cart__total .woocommerce-Price-amount {
    font-weight: 500 !important;
}

/* Link consistency */
.rey-summaryAcc-accItem, 
.rey-mobileNav-footer > a,
.woocommerce-MyAccount-navigation-wrapper ul li a,
.rey-summaryAcc-accItem {
    font-family: var(--e-global-typography-accent-font-family);
    font-weight: var(--e-global-typography-c1cdc0a-font-weight);
    color: var(--e-global-color-34e1ff2);
}
/* Link Consistency - Hover Accent */
.rey-summaryAcc-accItem:hover, 
.rey-mobileNav-footer > a:hover,
.rey-accountPanel .woocommerce-MyAccount-navigation-wrapper a:hover,
h2.woocommerce-loop-product__title a:hover,
.rey-cartPanel .woocommerce-mini-cart .woocommerce-mini-cart-item .woocommerce-mini-cart-item-title:hover,
.woocommerce-MyAccount-navigation-wrapper ul li a:hover {
    color: var( --e-global-color-accent);
}

/* Color: text */
.rey-summaryAcc-accItem {
    color: var( --e-global-color-text );
}

/* Button consistency */
button.single_add_to_cart_button.button.alt, 
.rey-cartPanel.--btns-inline .woocommerce-mini-cart__buttons > a,
li.product .button,
.woocommerce .button {
    font-family: var(--e-global-typography-accent-font-family);
    font-size: .9rem;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0px;
}
.rey-crossSells-item .rey-crossSells-itemContent .btn, 
.rey-crossSells-item .rey-crossSells-itemContent .add_to_cart_button, 
.rey-crossSells-item .rey-crossSells-itemContent .rey-quickviewBtn {
    font-family: var(--e-global-typography-accent-font-family);
    font-size: .8rem !important;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0px;
}
.rey-crossSells-item .rey-quickviewBtn {
    display: none !important;
}
/* Light Text Button */
.wc-block-cart .wc-block-cart__submit-container a,
button.wc-block-components-checkout-place-order-button,
.woocommerce .button {
    color: var(--e-global-color-9e8ae71);
}

/* Dark Text Button */
li.product .button {
    color: var(--e-global-color-34e1ff2);
}

/* Button background & border radius */
.wc-block-cart .wc-block-cart__submit-container,
button.wc-block-components-checkout-place-order-button,
.woocommerce .button {
    background-color: var( --e-global-color-accent);
    font-weight: 500;
    border-radius: 4px;
}
.wc-block-cart .wc-block-cart__submit-container:hover,
button.wc-block-components-checkout-place-order-button:hover,
.woocommerce .button:hover,
.rey-cartPanel.--btns-inline .woocommerce-mini-cart__buttons .wc-forward.checkout:hover {
    background-color: var( --e-global-color-15ba3e2);
}
/*No background in loop*/
li.product .button,
li.product .button:hover {
    background-color: transparent;
}

/* Form Elements */
/* Labels */
form .form-row label, .wccf_field_container label {
    font-family: var(--e-global-typography-accent-font-family);
    font-weight: var(--e-global-typography-c1cdc0a-font-weight);
    color: var(--e-global-color-34e1ff2);
    text-transform: capitalize;
    font-size: .85rem;
}

/* =========================
   Guarantee / Trust Block
========================= */
.tag-guarantee-block {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 18px 18px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    background: #ffffff;
    border: 1px solid var(--e-global-color-4c71201);
    border-radius: 14px;
}

.tag-guarantee-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;

    font-size: 14px;
    line-height: 1.45;
    color: var(--e-global-color-secondary);
}

.tag-guarantee-icon {
    flex-shrink: 0;
    margin-top: 2px;

    color: var(--e-global-color-accent);
    opacity: 0.9;
}

.tag-guarantee-icon svg {
    stroke: currentColor;
}

.tag-guarantee-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;

    color: var(--e-global-color-primary);
}

.tag-guarantee-text span {
    display: block;
    font-weight: 400;
    opacity: 0.85;

    color: var(--e-global-color-secondary);
}


/* =========================
   Product Attribute Scales
========================= */

.tag-starter-scales {
    margin-top: 24px;
    padding: 10px 20px;
    border: 1px solid var(--e-global-color-4c71201);
    border-radius: 16px;
    background: var(--e-global-color-9e8ae71);
}

.tag-starter-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.tag-starter-scale:not(:last-child) {
    border-bottom: 1px solid var(--e-global-color-4c71201);
}

.tag-scale-label {
    min-width: 140px;
}

.tag-scale-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    line-height: 1.2;
}

.tag-scale-value {
    font-size: 13px;
    color: var(--e-global-color-secondary);
    margin-top: 2px;
    opacity: 0.8;
}

.tag-scale-bars {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    max-width: 140px;
}

.tag-scale-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--e-global-color-4c71201);
    overflow: hidden;
    transition: background 0.2s ease;
}

.tag-scale-bar.active {
    background: var(--e-global-color-accent);
}

@media (max-width: 600px) {

    .tag-starter-scale {
        align-items: flex-start;
        flex-direction: column;
    }

    .tag-scale-bars {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }
}

/* =========================
   Random Tweaks
========================= */
.rey-loopSelectList {
    display: none;
}
.archive.post-type-archive-product .rey-siteContainer {
    padding-top: 0px;
}
li.product .rey-pSubtitle.--pos-after_title {
    font-size: 0.8rem;
    opacity: 0.8;
}
span.price.rey-loopPrice {
    font-weight: 500 !important;
}
div.product p.price ins {
    font-weight: 500;
}
.rey-wc-skin--minimal .rey-comp--title-price {
    align-items: baseline;
}
h2.woocommerce-loop-product__title {
    line-height: 1rem;
}
.rey-mainMenu-mobile>.menu-item>a {
    padding: 10px 0px;
}
.rey-stickyAtc .rey-stickyAtc-cart .tag-starter-scales,
.rey-stickyAtc .rey-stickyAtc-cart .tag-guarantee-block {
    display: none;
}
span.woocommerce-Price-amount.amount bdi {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 1px;
    line-height: normal;
}
small.woocommerce-price-au {
    margin-left: 3px;
}
.rey-crossSells-carousel.splide {
    border-top: solid 1px #eaeaea;
}
.rey-cartPanel .woocommerce-mini-cart .woocommerce-mini-cart-item>.woocommerce-mini-cart-thumbTitle .rey-cartImg img, 
.rey-cartPanel .woocommerce-mini-cart .woocommerce-mini-cart-item>.woocommerce-mini-cart-thumbTitle .rey-cartImg picture, 
.rey-cartPanel .woocommerce-mini-cart .woocommerce-mini-cart-item>.rey-cartImg img, 
.rey-cartPanel .woocommerce-mini-cart .woocommerce-mini-cart-item>.rey-cartImg picture,
.rey-crossSells-item .rey-crossSells-itemThumb a>img, 
.rey-crossSells-item .rey-crossSells-itemThumb a>.attachment-woocommerce_thumbnail {
    border-radius: 7px;
}
div.product p.price {
    font-weight: 500;
}
h4.rey-pSubtitle.--pos-after_title {
    opacity: .5;
}
.elementor-message {
    background: var(--e-global-color-9e8ae71);
    color: var(--e-global-color-secondary) !important;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    opacity: .97;
}


/* =========================
   Plugin styling
========================= */
.rey-stickyAtc-cart .woobt-wrap {
    display: none;
}
.woobt-products .woobt-product {
    font-size: 0.8rem;
    font-weight: 500;
}
.woobt-products .woobt-product img {
    border-radius: 4px;
}
.woobt-summary {
    display: none;
}
.woobt-products .woobt-product .woobt-title a {
    font-weight: 500;
    color: var(--e-global-color-primary);
}
.woobt-products .woobt-product .woobt-title a:hover {
    color: var(--link-color);
}
.woobt-products .woobt-product .woobt-price ins {
    color: var(--woocommerce-discount-color);
    font-weight: 500 !important;
}
.woobt-wrap::before {
    content: 'Add another lineage and save 10%';
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0px;
    opacity: .5;
}