/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

header [data-transparent] {
	backdrop-filter: blur(40px) grayscale(.5);
	-webkit-backdrop-filter: blur(40px) grayscale(.5);
}

body.archive.tax-product_cat .fox--category--text{
    width: var(--theme-container-width, 1200px);
    max-width: var(--theme-normal-container-max-width, 1200px);
}


/* 




	HEADER




*/

.woocommerce-cart div[data-row="top"],
.woocommerce-checkout div[data-row="top"],
.product-template-default div[data-row="top"]{
	background: var(--wp--preset--color--palette-color-1)!important;
}

.woocommerce-cart div[data-row="top"] a,
.woocommerce-checkout div[data-row="top"] a,
.product-template-default div[data-row="top"] a{
	color: #f2f2f2;
}

.woocommerce-cart div[data-row="top"] a:hover,
.woocommerce-checkout div[data-row="top"] a:hover,
.product-template-default div[data-row="top"] a:hover{
	color: white!important;
}

/* 




	HOME




*/

.fox--home-countries{
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
}

.fox--home-countries .ct-swatch{
	--swatch-size: 40px;
}

.fox--home-countries .ct-swatch:hover{
	transform: scale(1.05);
}

.home .ct-product-content-block .fox--product-title a{
	text-decoration: none;
}

.fox--home-grayarea li{
	background-color: white;
}

/* 




	ROASTING SLIDER




*/

.fox--roasting-slider,
.fox--roasting-slider .slick-track{
	display: flex;
}

.fox--roasting-slider .slick-track{
	gap: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--60) 0;
}

.fox--roasting-slider > ul{
	--shop-columns: unset!important;
}

.fox--roasting-slider .slick-track > li{
	min-width: 75vw!important;
}

@media only screen and (min-width: 480px)
{
	.fox--roasting-slider .slick-track > li{
		min-width: 60vw!important;
		width: 33vw!important;
	}
}

@media only screen and (min-width: 1025px)
{
	.fox--roasting-slider .slick-track > li{
		min-width: 250px!important;
		width: 33vw!important;
	}
}

.fox--slider-arrow{
	position: absolute;
	top: calc(50% - 2 * 50px);
	z-index: 2;

	width: 50px;
	height: 50px;
	border: none;
	border-radius: 100%;
	background-color: var(--theme-palette-color-1);
	background-size: 50%;
	background-position: center;
	background-repeat: no-repeat;
}

.fox--slider-arrow.fox--slider-prev{
	cursor: w-resize;
	left: calc(var(--wp--preset--spacing--30) * -1);
	background-image: url('/wp-content/themes/blocksy-child/img/arrow-left.svg');
}

.fox--slider-arrow.fox--slider-next{
	cursor: e-resize;
	right: calc(var(--wp--preset--spacing--30) * -1);
	background-image: url('/wp-content/themes/blocksy-child/img/arrow-right.svg');
}

.fox--roasting-sliderindicatorwrapper{
	position: relative;
}

.fox--roasting-sliderindicator{
	background: rgb(241,177,26);
	background: linear-gradient(24deg, rgba(241,177,26,1) 0%, rgba(0,0,0,1) 100%);
	margin-bottom: var(--wp--preset--spacing--50);

	width: 100%;
	height: 12px;
	border-radius: 3px;
}

.fox--roasting-slidercircle{
	cursor: ew-resize;
	touch-action: pan-y;
}

.fox--roasting-slidercircle{
	width: 40px;
	height: 40px;
	border-radius: 100%;
	border: 4px solid rgb(241,177,26);
	background-color: black;
	position: absolute;
	top: -13px;
	left: 4%;
}

.fox--roasting-slidercircle.smooth,
body:not(.home) .fox--roasting-slidercircle{
	transition: left 0.2s ease-in-out;
}

.fox--roasting-slidercircle:hover{
	transform: scale(1.1);
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fox--roasting-slidercircle.ui-draggable-dragging{
	transition: none;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	z-index: 10;
}

.fox--roasting-slidercircle[data-level="1"]{
	left: 20%;
}

.fox--roasting-slidercircle[data-level="2"]{
	left: 40%;
}

.fox--roasting-slidercircle[data-level="3"]{
	left: 60%;
}

.fox--roasting-slidercircle[data-level="4"]{
	left: 80%;
}

.fox--roasting-slidercircle[data-level="5"]{
	left: 90%;
}


/* 




	PRODUCTS




*/

li.product{
	border-radius: 5px;
}

figure .ct-woo-card-extra,
.product-addon-totals,
.wcsatt-options-prompt-text,
.wc-block-components-totals-item__description:has(p.wc-block-components-totals-footer-item-tax){
	display: none!important;
}

.wcsatt-sub-options{
	display: inline-block;
	opacity: 0.8;
}

.wc-pao-addon-container{
	margin-bottom: var(--wp--preset--spacing--60);
}

li.has-subscription-plans small.wcsatt-sub-options{
	font-size: 60%;
}

[data-products] .product{
	padding: var(--wp--preset--spacing--60);
	box-shadow: 1px 2px 18px 7px rgba(34, 56, 101, 0.03);
}

.fox--product-subtitle {
	position: relative;
}

.fox--product-subtitle strong{
	background-color: white;
	padding: 0 15px;
    z-index: 1;
    position: relative;
}
  
.fox--product-subtitle::before{
	content: '';
	position: absolute;
	top: 50%;
	width: 100%; /* Adjust the length of the line */
	left: 0;
	border-top: 1px solid var(--wp--preset--color--palette-color-1); /* Adjust line thickness and color */
}

.fox--product--attributelist{
	list-style: none;
    display: flex;
    gap: calc(var(--wp--preset--spacing--30) / 3) var(--wp--preset--spacing--20);
    font-size: var(--wp--preset--font-size--normal);
	flex-wrap: wrap;
	padding-left: 0;
}

.fox--product--attributelist li{
	--swatch-size: 20px;
	min-width: var(--swatch-size);
    padding: 0 calc(var(--swatch-size) / 1.5);
	border: 2px solid var(--swatch-button-border-color, var(--theme-border-color));
	border-radius: 200px;
}

/* 




	SHOP




*/

tr.recurring-totals,
tr.cart-subtotal.recurring-total{
	display: none;
}

small.includes_tax{
	display: block;
}

body form.variations_form table.variations{
	margin-bottom: 0.5em;
}

.single_variation_wrap{
	display: flex;
	flex-direction: column;
}

body .wc-pao-addon-container label{
	font-weight: 500!important;
	min-width: 30%;
}

@media screen and (min-width: 1024px) {
	.wc-pao-addon-container{
		display: flex;
		padding-left: 0;
		gap: 10px;
	}

	.form-row.form-row-wide.wc-pao-addon-wrap{
		margin-top: 0;
	}
}

.single_variation_wrap .woocommerce-variation.single_variation{
	order: 10;
	text-align: right;
}

.single_variation_wrap .woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled{
	order: 999;
}

/* 




	SUBSCRIPTION SWATCHES




*/

li.wcsatt-options-prompt-radio input,
.wcsatt-options-product-dropdown-label{
	display: none;
}

li.wcsatt-options-prompt-radio label{
	--swatch-size: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: var(--swatch-size);
	padding: calc(var(--swatch-size) / 3.5);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	color: var(--swatch-button-text-color);
	background: var(--swatch-button-background-color);
	border: 2px solid var(--swatch-button-border-color, var(--theme-border-color));
	transition: color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955), background .12s cubic-bezier(0.455, 0.03, 0.515, 0.955), border-color .12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.wcsatt-options-prompt-radios li label:has(input:checked){
	background-color: var(--theme-button-background-initial-color);
	color: white;
}

@media screen and (min-width: 1024px) {
	.wcsatt-options-prompt-radios{
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}
	
	.wcsatt-options-prompt-radio{
		display: flex;
	}
	
	.wcsatt-options-prompt-radio label{
		width: 100%;
	}
	
	.wcsatt-options-prompt-action{
		text-align: center;
	}

	.wcsatt-options-prompt-radios li:first-of-type label{
		border-top-left-radius: var(--theme-form-field-border-radius, 3px);
		border-bottom-left-radius: var(--theme-form-field-border-radius, 3px);
	}

	.wcsatt-options-prompt-radios li:last-of-type label{
		border-top-right-radius: var(--theme-form-field-border-radius, 3px);
		border-bottom-right-radius: var(--theme-form-field-border-radius, 3px);
	}
}

/* 




	KAIP PARUOŠTI KAVĄ




*/

.fox--guide-wrapper .gs-accordion-item__title img{
	max-height: 80px;
	width: auto;
}

.fox--guide-wrapper .gs-accordion-item__heading{
    font-size: x-large;
    font-weight: bold;
}

.fox--guide-steps{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--wp--preset--spacing--60);
	counter-reset: step-counter;
}

.fox--guide-steps,
.fox--guide-faq{
    max-width: 1024px;
    margin: var(--wp--preset--spacing--60) auto;
}

.fox--guide-steps img{
	max-height: 90px;
	aspect-ratio: 1 / 1;
	width: auto;
	counter-increment: step-counter;
}

.fox--guide-steps figcaption::before{
    content: counter(step-counter) ". ";
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--20);
    font-weight: bold;
	font-size: 120%;
	display: block;
}

.fox--guide-steps figcaption{
	text-align: left !important;
    font-size: var(--wp--preset--font-size--normal);
    line-height: 1.25;
	max-width: 240px;
}

/* In-product fixes */
.ct-accordion-tab .fox--guide-wrapper .gs-accordion-item__title{
	display: flex;
	padding: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--40);
	background-color: var(--theme-palette-color-6);
	align-items: center;
}

/* 




	PRIVACY POLICY 




*/

.fox--list-container ol,
.fox--list-container ol ul{
	list-style: none;
	padding-left: 0!important;
}

.fox--list-container ol ul{
    padding-left: var(--wp--preset--spacing--40) !important;
}

.fox--list-container ol > li:before {
	counter-increment: item-counter;
	content: counter(item-counter) ". ";
}

.fox--list-container ol li li{
	counter-increment: sub-item-counter;
}

.fox--list-container ol li li:before { 
	min-width: 40px;
	display: inline-block;
	content: counters(item-counter, ".") "." counters(sub-item-counter, ".") ". ";
}

.fox--list-container ol:first-of-type {
	counter-reset: item-counter;
}

/* 




	FOOTER 




*/

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name{
	font-weight: bold;
	font-size: 1.5em;
}

/* 




	FOOTER 




*/

.fox--payment-logos{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--wp--preset--spacing--40);
	opacity: 0.7;
	user-select: none;
}

.fox--payment-logos figure{
	margin-bottom: 0;
}

.fox--payment-logos img{
	max-height: 25px;
	width: auto;
}

.fox--footer-logogallery img{
	height: 75px!important;
	width: 100%!important;
	object-fit: contain!important;
}


  /* Hide shipping progress when Itella is selected */
body:has(input[value*="itella_courier"]:checked) .ct-shipping-progress-checkout-page {
    display: none !important;
}

  /* Reduce spacing when shipping progress is hidden */
body:has(input[value*="itella_courier"]:checked) .ct-order-review-modules {
    margin-bottom: 60px !important;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* PRODUCT BADGES */
.ct-product-card .ct-image-container,
.ct-product .ct-image-container {
    position: relative;
}

.fox-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.fox-badge {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    background: #b55d38;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.fox-badge--new {
    background: var(--theme-palette-color-1, #b55d38);
}

.fox-badge--sale {
    background: #d14b39;
}

.fox-badge--soldout {
    background: var(--theme-palette-color-3, #3f4245);
}

/* Hide default sale badges (using custom badge checkboxes instead) */
.single-product .onsale,
.archive .onsale,
.ct-product-card .onsale,
.product-entry-wrapper .onsale {
    display: none !important;
}

/* Hide default out of stock badges */
.single-product .out-of-stock-badge,
.archive .out-of-stock-badge,
.ct-product-card .out-of-stock-badge,
.product-entry-wrapper .out-of-stock-badge {
    display: none !important;
}

/* Shop page: polish category tiles (title + short description) */
body.post-type-archive-product .ct-product-card .woocommerce-loop-category__title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
    color: #1c1c1c;
}

body.post-type-archive-product .ct-product-card .entry-excerpt {
    margin-top: 4px;
    line-height: 1.6;
    color: #4a4a4a;
    font-size: 15px;
}
