/*
 Theme Name:   Blocksy Child
 Template:     blocksy
*/

/* ========================================
   CUSTOM COLOR VARIABLES
   ======================================== */
:root {
  --lemon: #FDD835;
  --lemon-soft: rgba(253,216,53,0.25);
  --lemon-bg: #FDFCE6;
  --lemon-dark: #c8a82e;
  --blood: #C62828;
  --blood-soft: rgba(198,40,40,0.16);
  --blood-bg: #FBF0EE;
  --sage-dark: #a8a99b;
  --sage: #D5D6C8;
  --sage-soft: rgba(213,214,200,0.45);
  --sage-extra-soft: rgba(213,214,200,0.15);
  --sage-bg: #F0F0EA;
  --sage-bg-light: #F0F0EA;
  --sage-rgb: 213, 214, 200;
  --neutral-stripe: var(--sage-extra-soft);
  --bg: var(--sage-bg);
  --black: #141414;
  --text: #1A1A1A;
  --text-muted: rgba(26,26,26,0.55);
  --white-muted: rgba(255,255,255,0.7);
}

/* Jost Variable Font - Roman/Normal Style */
@font-face {
  font-family: 'Jost';
  /* The family name */
  font-style: normal;
  /* Defines this block as the 'normal' style */
  font-weight: 100 900;
  /* The available weight range for this file */
  font-display: swap;
  src: url('./fonts/Jost-VariableFont_wght.woff2') format('woff2-variations'),
    url('./fonts/Jost-VariableFont_wght.ttf') format('truetype-variations');
}

/* Jost Variable Font - Italic Style */
@font-face {
  font-family: 'Jost';
  /* Use the SAME family name */
  font-style: italic;
  /* Defines this block as the 'italic' style */
  font-weight: 100 900;
  /* The available weight range for this file */
  font-display: swap;
  src: url('./fonts/Jost-Italic-VariableFont_wght.woff2') format('woff2-variations'),
    url('./fonts/Jost-Italic-VariableFont_wght.ttf') format('truetype-variations');
}

/**
* Overall font/background styles
*/
body,
body p,
body h1, body h2, body h3, body h4, body h5, body h6,
body a {
    font-family: 'Jost', sans-serif !important;
    font-weight: 400;
}

.citrivo-brand {
  font-weight: 600;
}

.c-mark {
  font-weight: 600;
}

body.woocommerce {
  background: var(--bg);
}
@property --active-bg {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent; 
}

@property --active-stripe {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent; 
}

/* 2. Set up your base state */
body.woocommerce::before, body.woocommerce-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh;
  z-index: -1;
  
  /* Map your default CSS variables to our new animatable ones */
  --active-bg: var(--bg);
  --active-stripe: var(--neutral-stripe);

  /* Apply the animatable variables to your background */
  background-color: var(--active-bg);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--active-stripe) 0,
    var(--active-stripe) 40px,
    transparent 40px,
    transparent 100px
  );

  /* Transition the variables, NOT the background properties! */
  transition: --active-bg 0.5s ease-out, --active-stripe 0.5s ease-out;
}

/* 3. Simply update the variables for your hover/scroll states */
body.woocommerce.state-lemon::before {
  --active-bg: var(--lemon-bg);
  --active-stripe: var(--lemon-soft);
}

body.woocommerce.state-blood::before {
  --active-bg: var(--blood-bg);
  --active-stripe: var(--blood-soft);
}

body form select,
body form select:focus,
body form .wc-block-components-text-input input,
body form .wc-block-components-text-input input:focus,

body .wc-block-components-textarea,
body .wc-blocks-components-select .wc-blocks-components-select__container,
body .wc-block-components-text-input input:is([type=email],[type=number],[type=tel],[type=text],[type=url]),
body .wc-block-components-text-input input:is([type=email],[type=number],[type=tel],[type=text],[type=url]):focus,

.wc-block-components-quantity-selector,
form.wc-block-components-form .wc-block-components-text-input input,
form.wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__container,
form.wc-block-components-form .wc-block-components-checkbox input,
form.wc-block-components-form .wc-block-components-radio-control,
form.wc-block-components-form .wc-block-checkout__payment-method .wc-block-components-checkout-step__content,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,

.wc-gzdp-multilevel-checkout-step-summary,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-address-address-wrapper,

.woocommerce-order-overview,
.woocommerce-table,
.woocommerce-column--billing-address address,
.woocommerce-column--shipping-address address{
    background-color: var(--white-muted) !important;
}

body table.order_details th:first-child,
body table.order_details td:first-child {
    padding-inline-start: 1em;
}


.woocommerce-info {
    border: 1px solid #e0dbd2;
    border-left: 3px solid #d4c9a8;
}

/**
* header mods
*/

header[data-id="type-1"] .navbar-brand {
  max-width: 100px;
  display: inline-block;
}
header[data-id="type-1"] div[data-row="middle"] .menu-container .menu .ct-menu-link {
    text-transform: none;
    font-weight: 400;
    font-size: 1rem;
}
.menu .menu-item-62 > .ct-menu-link {
    color: var(--theme-link-hover-color) !important;
}

header[data-id="type-1"] .menu-item-has-children:last-child .sub-menu {
    left: auto;
    right: 0;
}

/**
* archive view price/tax/shipping info display
*/
.woocommerce ul.products li.product .price {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    justify-content: center;
}

.woocommerce ul.products li.product .price .amount {
    font-size: 1.2em;
}

.woocommerce ul.products li.product .gzd-price-tax-info {
    margin: 0;
    margin-left: 0.5em;
    line-height: 1.1em;
    text-align: left;
}

.woocommerce ul.products li.product {
    text-align: center;
}

.woocommerce ul.products li.product .ct-woo-card-actions {
    justify-content: center;
}

/**
* Force unit price below sale price
*/
.woocommerce ul.products li.product .price-unit.wc-gzd-additional-info-loop {
    order: 5;
    margin-top: -0.25rem;
    font-size: 0.75rem;
}

.woocommerce ul.products li.product span.price {
    order: 4;
}
.woocommerce ul.products li.product .ct-woo-card-actions {
    order: 99;
}

/* Coming Soon badge */
.citrivo-badge-coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #f5e6a3;
    color: #6b5a10;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}
.is-coming-soon .out-of-stock-badge {
    display: none;
}

.is-coming-soon .ct-woo-card-actions {
    display: none;
}

/* Hide Read More button and price area on coming soon products */
.is-coming-soon .ct-woo-card-actions,
.is-coming-soon .price {
    display: none !important;
}

/* Disable click/hover on coming soon product image and title */
li.is-coming-soon {
    pointer-events: none;
}

.is-coming-soon figure .ct-media-container {
    cursor: default;
}

.is-coming-soon figure .ct-media-container:hover {
    opacity: 1;
}
/* New label below title */
.citrivo-coming-soon-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b5a10;
    background: #f5e6a3;
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 4px;
}

/**
* single item view changes
*/

.wpclv-attributes .wpclv-attribute .wpclv-terms .wpclv-term-button {
    border: 1px solid #ccc;
    background: transparent;
    color: #1a1a1a;
}
.wpclv-attributes .wpclv-attribute .wpclv-terms .wpclv-term.active,
.wpclv-attributes .wpclv-attribute .wpclv-terms .wpclv-term.active:hover {
    border: 2px solid var(--theme-palette-color-9);
    background: transparent;
}
.wpclv-attributes .wpclv-attribute .wpclv-terms .wpclv-term:hover {
    border: 1px solid var(--theme-palette-color-10);
}

.ct-product-add-to-cart .ct-cart-actions .quantity {
    background-color: rgba(0, 0, 0, 0.04);
}

.woocommerce-product-details__short-description p {
    margin-block-end: 1em;
}
body .product .price .amount {
    font-weight: 500;
    font-size: 1.4em;
}

.citrivo-product-details {
    display: flex;
    gap: 3em;
    border-top: 1px solid #e0e0e0;
    
    margin-inline: auto;
    width: var(--theme-container-width);
    max-width: var(--theme-block-max-width);
    padding: 2em 0;
    
    margin-top: 1em;
}

.citrivo-product-description {
    flex: 1;
    min-width: 0;
}

.citrivo-product-info {
    /*flex: 0 0 380px;*/
}
.citrivo-product-info {
    flex: 2;
}

.citrivo-product-description {
    flex: 3;
}


body .citrivo-first-review {
    text-align: center;
    padding: 1.5em 0 2em;
    margin-top: 0;
    color: #999;
    font-size: 0.85em;
    font-style: italic;
}

body .citrivo-first-review a {
    color: inherit;
    text-decoration: underline;
}
.citrivo-product-info .woocommerce-product-attributes {
    border: none;
    width: 100%;
}

.citrivo-product-info .woocommerce-product-attributes tr {
    border-bottom: 1px solid #eee;
}

.citrivo-product-info .woocommerce-product-attributes tr:last-child {
    border-bottom: none;
}

.citrivo-product-info .woocommerce-product-attributes th,
.citrivo-product-info .woocommerce-product-attributes td {
    border: none;
    background: transparent;
    padding: 0.6em 0;
    vertical-align: top;
}

body .citrivo-product-info .woocommerce-product-attributes th {
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    padding-right: 1.5em;
    white-space: nowrap;
}

body .citrivo-product-info .woocommerce-product-attributes td p {
    margin: 0;
}
body .citrivo-info-heading {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}
.citrivo-product-info .woocommerce-product-attributes tr:nth-child(even) td,
.citrivo-product-info .woocommerce-product-attributes tr:nth-child(even) th {
    background: transparent;
}

body .citrivo-product-info .woocommerce-product-attributes th {
    font-weight: 700;
    vertical-align: baseline;
}

.citrivo-product-info .woocommerce-product-attributes td {
    vertical-align: baseline;
}

.citrivo-description-heading {
    display: none;
}

#radio-control-wc-payment-method-options-stripe__content .wc-block-components-payment-methods__save-card-info {
    margin-top: 1em;
}

/* * This is the CSS for your new shipping bar.
 * It's just a regular block element, so it will 
 * "push" your navigation down by default.
 */

/* General Shipping Progress Bar Styling */
body #citrivo-shipping-bar .shipping-bar p {
    font: 500 16px/1.2 'Jost', sans-serif;
    padding: 12px 15px;
    text-align: center;
}
/* Default "empty cart" bar */
#citrivo-shipping-bar .shipping-bar.default {
    background-color: rgba(232, 230, 223, 0.5);
    color: #555;
    border-bottom: 1px solid #ddd;
}
/* "In Progress" bar */
#citrivo-shipping-bar .shipping-bar.in-progress {
    background-color: #ffefc1; /* Light yellow */
    color: #554b2d;
    border-bottom: 1px solid #E0C87A;
}
/* "Success" bar */
#citrivo-shipping-bar .shipping-bar.success {
    background-color: #C8D4B8; /* Light green */
    color: #2F4A2E;
    border-bottom: 1px solid #9AB08A;
}
/* The <p> tag inside the bar */
#citrivo-shipping-bar .shipping-bar p {
    margin: 0;
    padding: 0;
}

/* checkout page */
.wc-block-components-order-summary-item__quantity {
    color: var(--theme-palette-color-3) !important;
}


@media (max-width: 768px) {
    .citrivo-description-heading {
        display: block;
    }
    .woocommerce ul.products li.product {
        padding-bottom: 2em;
        margin-bottom: 2em;
        border-bottom: 1px solid #ddd;
    }
    
    .woocommerce ul.products li.product:last-child {
        border-bottom: none;
    }
    /**
    * force nav sub menu to auto-expand on mobile
    */
    .ct-panel-content[data-device="mobile"] .menu-item-has-children .sub-menu {
        display: block !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Hide the dropdown arrow since it's always open */
    .ct-panel-content[data-device="mobile"] .menu-item-has-children button.ct-toggle-dropdown-mobile {
        display: none;
    }
}

@media (max-width: 999px) {
    .citrivo-product-details {
        flex-direction: column;
        gap: 1.5em;
    }

    .citrivo-product-info {
        flex: 1;
    }
}

/**
* marketing Confrmation page
*/
.citrivo-cta-link::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.2s ease;
}

.citrivo-cta-link:hover::after {
    transform: translateX(4px);
}

/* --- Add to Cart Toast with Checkout Link --- */

.citrivo-toast {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 99999;
    background: #f5e6a3;
    border: 1px solid #e6d48a;
    border-radius: 8px;
    padding: 14px 18px;
    width: 280px;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.citrivo-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.citrivo-toast__message {
    font-size: 0.85rem;
    font-weight: 500;
    color: #3a3530;
    margin: 0 0 10px;
    line-height: 1.4;
}

.citrivo-toast__checkout {
    display: block;
    background: #3a3530;
    color: #faf6eb;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.citrivo-toast__checkout:hover {
    background: #4a453e;
    color: #faf6eb;
}

/* --- Responsive: bottom of screen on mobile --- */

@media (max-width: 600px) {
    .citrivo-toast {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* --- Max Quantity Reached Notice (product page) --- */

.citrivo-max-reached-notice {
    font-size: 0.85rem;
    color: #b45309;
    margin: -1.5em 0 0.5em;
}

/* --- Disabled add-to-cart button when max reached --- */

.single_add_to_cart_button.disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* --- Disable archive add-to-cart when max reached --- */

.woocommerce ul.products li.product .button.max-reached {
    pointer-events: none;
    opacity: 0.4;
}

/* --- "Max N per order" popup on qty selector --- */

.citrivo-qty-max-msg {
    display: block;
    font-size: 0.78rem;
    color: #b45309;
    white-space: nowrap;
    margin-top: 4px;
}
/* --- Floating tooltip for "Max N per order" --- */
 
.citrivo-qty-tooltip {
    position: absolute;
    z-index: 10000;
    background: #3a3530;
    color: #faf6eb;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
 
.citrivo-qty-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}
 
.citrivo-qty-tooltip__arrow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #3a3530;
}

/**
* FOOTER
*/
.citrivo-footer {
    background: rgba(0,0,0,0.86);
    color: #b0a890;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.citrivo-footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

body .citrivo-footer-tagline {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

body .citrivo-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5rem;
}

body .citrivo-footer-nav a {
    color: #d4cbb8;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.citrivo-footer-nav a:hover {
    color: #fff;
}

body .citrivo-footer-copy {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 1rem 0 0 0;
}