/* =================================================================
   CROCOBLOCK - Widget Enhancements
   ================================================================= */

/*
 * Testimonial - Widget has no wrapper padding controls
 */
.jet-testimonials__content {
    padding: var(--space-xl); /* Main content padding */
    gap: var(--space-3xs); /* Element spacing within testimonial */
}

/*
 * JetFilters - Removes the focus effect when its selected 
 */
.jet-select__control:focus, .jet-select__control:focus-visible,
.jet-select__control:focus-within, .jet-sorting-select:focus,
.jet-sorting-select:focus-visible, .jet-sorting-select:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/*
 * Inline SVG - There was a min-width set that didn't allow to use small sized icons
 */
.jet-inline-svg svg {
    min-width: unset !important;
}

/*
 * JetMenu - Align dropdown to the right 
 */

.jet-nav__sub {
    left: unset !important;
    right: 0 !important;
}

/*
 * Pagination - Mobile - Shows only previous/next to have visual control and simplicity
 */
@media (max-width: 767px) {
    .archive-pagination .jet-smart-filters-pagination .jet-filters-pagination__item:not(.prev-next) {
        display: none;
    }
}

/** ================================================================
 ** SEOPRESS
    ================================================================ **/
/* Substitui o separador default por um SVG igual ao do JetBreadcrumbs */
.breadcrumb .breadcrumb-item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--colour-grey-400, #989898);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath d='M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z'/%3E%3C/svg%3E") no-repeat center / contain;
    vertical-align: -1px;
}

.breadcrumb .breadcrumb-item::after {
    margin: 0px 6px -2px 6px;
}

/* Breadcrumb - Esconde sempre o último item (página atual) e o seu separador */
.breadcrumb .breadcrumb-item:last-child {
    display: none !important;
}
.breadcrumb .breadcrumb-item:nth-last-child(2)::after {
    content: none !important;
}


/* ================================================================
   WOOCOMMERCE CORE
   ================================================================ */

/* Sale price - Removes underline to improve readability */
.product-item .product-price ins { text-decoration: none; }

/* Regular price - Sets a neutral colour, reduces size and improves readability */
.product-item .product-price del {
    color: var(--colour-grey-500);
    font-weight: normal;
    font-size: 0.74em;
    text-decoration: none;

}

/**
 ** WooCommerce - Breadcrumbs widgets 
 **/

.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 0px;
}

/**
 ** Crocoblock - Breadcrumb Widget - WooCommerce Context Only
 ** Hides last item and the repeated "Shop" and "Products" breadcrumb items and separators
 ** SEOPress handles the ld+json breadcrumb metadata 
 **/

/* WooCommerce - Breadcrumb - Mostra só "Início > Loja" nas páginas Loja e Produto */
.woocommerce-shop .jet-breadcrumbs__wrap .jet-breadcrumbs__item:not(:first-child),
.single-product .jet-breadcrumbs__wrap .jet-breadcrumbs__item:nth-child(n+4) {
    display: none !important;
}

/* Inverts regular and sale price order */
 .product-item .jet-woo-product-price:has(ins):has(del) {
    display: flex;
    flex-direction: row-reverse;
    column-gap: 0.4em;
}

/* Hides "in stock" label */
.product-item .product-stock:has(.in-stock) { display: none; }

/* Stock label bottom margin */
.product-item .product-stock p { margin-bottom: 0; }

/*
 * WooCommerce - Notices - Several optimizations
 */ 
.notice {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    
    
}

.notice .woocommerce-info{
    background-color: var(--colour-grey-050);
    border: 1px solid var(--colour-grey-100) !important;
    color: var(--colour-text) !important;
    
    border-radius: var(--radius-l);
}

.woocommerce-info::before{
    color: var(--colour-black);
}


.wrapper-notices { /* Hide outer wrapper by default - It has some height that breaks design*/
    display: none;
}

.wrapper-notices:has(.woocommerce-message),
.wrapper-notices:has(.woocommerce-error),
.wrapper-notices:has(.woocommerce-info) { /* Show wrapper when it contains a notice */
    display: flex; 
}

.woocommerce-message { /* Breaking design */
    margin-top: 0px;
    margin-bottom: 0px;
}


/* =================================================================
   TYPOGRAPHY
   ================================================================= */

/*
 * Vertical Heading
 * Reverts to horizontal on mobile for readability 
 */
.responsive-vertical-heading { writing-mode: vertical-rl; }

/*
 * Mobile Override - Horizontal Text Below 768px
 * Improves mobile UX and prevents layout issues 
 */
@media (max-width: 767px) {
    .responsive-vertical-heading { writing-mode: horizontal-tb; } 
}

/* 
 * Vertical Text - 180° Rotation
 * White-space and overflow prevent text wrapping issues 
 */
.vertical-heading {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    display: inline-block;
    overflow: visible;
}

