/******************* custom product page Variation Quantity Selector (product) **********************/
/* =====================================================
 * HIDE ORIGINAL VARIATION SWATCHES
 * ===================================================== */
.woo-variation-swatches .variable-items-wrapper,
.woo-variation-swatches .variable-items-wrapper .variable-item,
.variation-swatches-wrapper,
.variation-swatches,
.swatches-support .variable-items-wrapper {
	display: none !important;
}

/* Hide original WooCommerce selects visually. DO NOT remove them because JS needs them. */
form.variations_form .variations select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* SELECTED COLOR */
.vittorio-selected-color {
	font-size: 15px;
	margin-bottom: 12px;
	color: #222;
	line-height: 1.4;
}
.vittorio-selected-color strong {
	font-weight: 600;
}
#vittorio-selected-color-name {
	font-weight: 400;
}

/* QUANTITY WRAPPER */
.vittorio-variation-qty-wrapper {
	margin: 20px 0 40px;
	width: 100%;
}

/* TITLE */
.vittorio-variation-qty-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
	line-height: 1.4;
}

/* VARIATION ROW */
.vittorio-variation-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #eeeeee;
	cursor: pointer;
}

/* SWATCH */
.vittorio-variation-swatch {
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid #cccccc;
	box-sizing: border-box;
	flex-shrink: 0;
	overflow: hidden;
}

/* Image swatch */
.vittorio-image-swatch {
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 0;
	border: 0;
	width: 80px;
	height: 60px;
	@media ( max-width: 500px ) {
	    width: 70px;
    }
}
select.vittorio-power-range {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 14px;
}

/* Color swatch */
.vittorio-color-swatch {
	background-color: #ffffff;
}

/* White fallback */
.vittorio-white-swatch {
	background-color: #ffffff;
	border: 1px solid #cccccc;
}

/* VARIATION NAME */
.vittorio-variation-name {
	min-width: 75px;
	font-weight: 500;
}

/* QUANTITY CONTROL */
.vittorio-qty-control {
	display: flex;
	align-items: center;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	overflow: hidden;
	margin-left: auto;
	flex-shrink: 0;
}

/* PLUS / MINUS */
.vittorio-qty-control button {
	width: 32px;
	height: 34px;
	border: 0;
	background: #f5f5f5 !important;
	cursor: pointer !important; 
	font-size: 18px !important;
	line-height: 1 !important;
	color: #000 !important;
	padding: 6px !important;
	text-align: center !important;
}
.single_variation_wrap .vittorio-qty-control button:hover,
.single_variation_wrap .vittorio-qty-control button:focus{
	background: #e9e9e9 !important;
}


/* MANUAL OUT OF STOCK */
.vittorio-variation-row.vittorio-manual-out-of-stock {
	opacity: 0.6;
	cursor: not-allowed;
}
.vittorio-manual-oos-label {
	color: #c62828;
	font-size: 13px;
	font-weight: 600;
	margin-left: 8px;
	white-space: nowrap;
}
.vittorio-variation-row.vittorio-manual-out-of-stock .vittorio-qty-control {
	opacity: 0.5;
}
.vittorio-variation-row.vittorio-manual-out-of-stock .vittorio-qty-control button,
.vittorio-variation-row.vittorio-manual-out-of-stock .vittorio-variation-qty {
	cursor: not-allowed;
}

/* INPUT */
.vittorio-qty-control input {
	width: 50px !important;
	height: 34px !important;
	border: 0 !important;
	text-align: center;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Remove number arrows */
.vittorio-qty-control input::-webkit-inner-spin-button,
.vittorio-qty-control input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.vittorio-qty-control input {
	-moz-appearance: textfield;
}

/* STOCK */
.vittorio-stock {
	font-size: 12px;
	color: #777;
	white-space: nowrap;
	width: 100%;
	max-width: 85px;
}

/* ACTIVE ROW */
.vittorio-variation-row.active {
	background: #fafafa;
}

/* MOBILE */
@media ( max-width: 600px ) {
	.vittorio-variation-row {
		gap: 6px;
	}
	.vittorio-variation-name {
		min-width: 60px;
	}
	.vittorio-stock {
		display: none;
	}
	.vittorio-qty-control {
		margin-left: auto;
	}
}


/*// ****************** end custom product page Variation Quantity Selector (product) **********************/


/********************** WooCommerce Product Categories Cards Shortcode and WooCommerce product search results shop by categories **************************/
.wc-category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.wc-category-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
	text-decoration: none !important;
	color: #fff !important;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 0;

	/* ADD */
	aspect-ratio: 424 / 240;
}

.wc-category-card-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    justify-content: space-between;
    height: 100%;
}

.wc-category-card-content-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-category-small-title {
    font-family: var(--e-global-typography-ccd99fa-font-family), Sans-serif;
    font-size: var(--e-global-typography-ccd99fa-font-size);
    font-weight: var(--e-global-typography-ccd99fa-font-weight);
    text-transform: var(--e-global-typography-ccd99fa-text-transform);
    font-style: var(--e-global-typography-ccd99fa-font-style);
    line-height: var(--e-global-typography-ccd99fa-line-height);
    color: var(--e-global-color-f66dd3b);
    margin-bottom: -6px;
}

.wc-category-card h3 {
    color: #fff !important;
    font-family: "Inter", Sans-serif !important;
    margin: 0;
}

.wc-category-description {
    max-width: 160px;
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    font-style: normal;
    line-height: 1.6em;
    color: var(--e-global-color-f66dd3b);
}

.wc-category-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.3s ease;
    background-color: var(--e-global-color-f66dd3b);
    fill: var(--e-global-color-accent);
    color: var(--e-global-color-accent);
    border-radius: 8px 8px 8px 8px;
    padding: 10px 24px 10px 24px;
    line-height: var(--e-global-typography-accent-line-height);
}

.wc-arrow {
    font-size: 24px;
    line-height: 12px;
    font-weight: 400;
}

/* Tablet */
@media (max-width: 1024px) {
    .wc-category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .wc-category-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wc-category-card-content {
        padding: 32px 20px;
    }
}
/********************** End WooCommerce Product Categories Cards Shortcode and WooCommerce product search results shop by categories **************************/

