/* ==========================================================================
   Fabricstore Custom Styles (VagwoeStyles)
   ========================================================================== */

/* fonts import with font-display: swap for Core Web Vitals / Lighthouse */
@font-face {
    font-family: 'Averta Extrabold';
    src: url('averta-extrabold-webfont.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta Regular';
    src: url('averta-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'averta-bold';
    src: url('averta-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'averta-light';
    src: url('averta-light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

p,
span,
li,
a,
table,
td,
tr,
input,
div {
    font-family: 'averta-light' !important;
}

html,
body,
bp,
span,
li,
a,
table,
td,
tr,
input,
div {
    font-family: 'Averta Regular' !important;
}

h1,
h2 {
    font-family: 'Averta Extrabold' !important;
}

h3,
h4,
h5,
h6 {
    font-family: 'averta-bold' !important;
}

#wpadminbar .ab-icon,
#wpadminbar .ab-item:before,
#wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon,
.wp-admin-bar-arrow {
    font: normal 20px/1 dashicons !important;
}

/*---------------------------------------------------------------------------------------*/

::-moz-selection {
    /* Code for Firefox */
    color: white;
    background: #c83e2f;
}

::selection {
    color: white;
    background: #c83e2f;
}

@media (min-width: 1025px) {
    .nav>li>a {
        font-weight: 700;
        margin: 0 15px;
    }

    .banner h2 {
        font-size: 3rem;
    }

    .banner p {
        font-size: 2rem;
    }
}

@media (min-width: 1025px) {

    .off-canvas-right .mfp-content,
    .off-canvas-left .mfp-content {
        width: 20% !important;
    }
}

.bfrcart {
    font-family: 'Averta Extrabold' !important;
    color: #c83e2f;
    font-size: 16px;
}

.page-title-inner.flex-row.medium-flex-wrap.container {
    display: block;
}

.html1 {
    font-family: 'averta-bold' !important;
    font-size: 18px;
    padding: 5px;
    margin: 10px auto;
}

select.orderby {
    border: 0.5px solid #c83e2f;
    border-radius: 20px;
}

p.woocommerce-result-count.hide-for-medium {
    font-family: 'averta-light' !important;
    font-size: 1.2em;
}

.term-description {
    background: #c83e2f;
    padding: 10px;
    margin: 10px auto;
    border-radius: 10px;
    color: #fff;
}

.term-description h1 {
    color: white;
}

.term-description h2 {
    color: #ffffff;
    font-size: 1.1em;
}

.term-description h3 {
    color: #ffffff;
    font-size: 1.1em;
}

span.sku_wrapper {
    font-size: 2em;
    font-weight: 900;
    color: #555;
}

.woocommerce-product-attributes-item--attribute_pa_manufacturer {
    display: none;
}

.product-info p.stock {
    margin: 1em 0 !important;
    font-size: 1em !important;
}

button.single_add_to_cart_button.button.alt.sample {
    background-color: #c83e2f;
}

.variations .label label {
    margin: 0.5em 10px 0.5em 0;
}

.variations .label {
    margin: 15px auto;
}

span.sku_wrapper-after-title {
    font-family: 'Averta Regular' !important;
    font-size: 1rem;
    font-weight: 900;
    color: #555;
}

.product-info span.sku_wrapper-after-title {
    font-family: 'Averta Regular' !important;
    font-size: 1.75em;
    font-weight: 900;
    color: #555;
}

span.sku-title {
    font-family: 'averta-bold' !important;
}

.qty-label {
    font-family: 'averta-bold' !important;
    font-size: 1rem;
    color: #d26e4b;
    margin: 15px 0 5px 0;
}

.back-to-top {
    right: 100px;
    bottom: 33px;
}

.v-woe .carousel {
    overflow: hidden !important;
    width: 100% !important;
    height: 300px !important;
}

.v-woe .carousel>.flickity-viewport {
    position: initial !important;
}

.v-woe .flickity-slider>.carousel-cell {
    margin: 0 5px 0 5px;
    height: 100% !important;
    width: 33% !important;
}

.ux-swatches--x-large .ux-swatch--color,
.ux-swatches--x-large .ux-swatch--image {
    opacity: 1 !important;
}

.var-images {
    display: flex;
    grid-gap: 1rem;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 !important;
}

.var-images .var-image {
    flex: 0 0 37.5%;
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
    position: relative;
    scroll-snap-align: start;
    object-fit: cover;
    overflow: hidden;
}

.var-images.var-images-mob .var-image {
    aspect-ratio: 1/1 !important;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 20px 0;
}

.var-images .var-image .var-imageThumb {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.var-images .var-image .var-imageThumb .overlay {
    background: #000;
    background: linear-gradient(180deg, #000000d9 0%, #0000004f 25%, #00000000 50%);
}

.var-images .var-image .var-imageInfo {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    padding: 5px 5px 0 10px;
}

.var-images .var-image .var-imageInfo .title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.var-images::-webkit-scrollbar {
    height: 2.4rem;
}

.var-images::-webkit-scrollbar-thumb {
    border: 0;
    border-radius: 0;
    background: linear-gradient(to top, #000 0.8rem, transparent 0.8rem);
}

.var-images::-webkit-scrollbar-track {
    background-color: transparent;
    background-image: linear-gradient(to top, #000 1px, transparent 1px);
}

.d-none {
    display: none !important;
}

.product-gallery-slider img,
.product-thumbnails img {
    width: 100%;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    height: 100% !important;
}

.ux-swatches {
    justify-content: space-between !important;
}


/* ==========================================================================
   Accessibility & Color Contrast Improvements (Lighthouse 100)
   ========================================================================== */

/* Footer contrast improvements */
.footer.dark a,
.footer.dark p,
.footer.dark span {
    color: #f1f1f1 !important;
}

.footer.dark a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer.dark .widget-title {
    color: #ffffff !important;
}

/* Header link contrast */
.header-nav .nav-top-link {
    color: #1a1a1a;
}

/* Screen reader only utility class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   Remnants / Τελευταία Κομμάτια (Styling)
   ========================================================================== */

/* Badge στον κατάλογο (Shop / Category Loop) */
.badge-remnant-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background-color: #d94834;
    color: #ffffff;
    font-family: 'Averta Extrabold', sans-serif !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Πλαίσιο ειδοποίησης στη σελίδα προϊόντος */
.remnant-box {
    border-radius: 6px;
    padding: 15px 18px;
    margin: 15px 0 20px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.remnant-box-whole {
    background: #fff8f5;
    border: 1.5px solid #d94834;
}

.remnant-box-cut {
    background: #fdfbf7;
    border: 1.5px solid #d26e4b;
}

.remnant-box-variable {
    background: #f6f8fa;
    border: 1.5px solid #707b88;
}

.remnant-badge-header {
    font-family: 'averta-bold', sans-serif !important;
    font-size: 13px;
    color: #d94834;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.remnant-content p.remnant-main-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333333;
}

.remnant-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #444;
}

.remnant-specs li {
    margin-bottom: 4px;
}

.remnant-specs li.stock-status {
    color: #27ae60;
    font-weight: 600;
}

.remnant-stock-alert {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0;
    border: 1px dashed #d26e4b;
    color: #9c3f1b;
}

.btn-buy-all-remnant {
    background-color: #d26e4b !important;
    border-color: #d26e4b !important;
    color: #fff !important;
    font-family: 'averta-bold', sans-serif !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
}

.btn-buy-all-remnant:hover {
    background-color: #b55433 !important;
    border-color: #b55433 !important;
}