:root {
    --color-primary: #003366;
    --color-primary-hover: #212121;
    --color-secondary: #f6f6f6;
    --color-text-default: #333;
    --color-text-muted: #404040;
    --color-border-light: #e0e0e0;
    --color-black: #000;
    --color-white: #fff;
    --color-link: #404040;
    --color-link-hover: #191970;
    --color-disabled-bg: #404040;
    --color-swiper-bullet: #000;
    --color-swiper-bullet-active: #007aff;

    --font-size-small: 0.9rem;
    --font-size-base: 1rem;
    --font-size-medium: 1.3rem;
    --font-size-large: 1.5rem;

    --spacing-xs: 5px;
    --spacing-s: 10px;
    --spacing-m: 15px;
    --spacing-l: 20px;
    --spacing-xl: 35px;
    --spacing-xxl: 60px;

    --border-radius-none: 0;
    --border-radius-small: 5px;

    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-base: 1.6;
    --line-height-heading: 1.2; 
}

.woocommerce-error {
    background-color: #e2401c;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    display: block;
    width: 100%;
    margin: 20px auto;
    display:block;
}

.woocommerce-error a {
    text-decoration: underline;
    font-weight: bold;
	margin-left:6px;
}


.product-brand {
	font-size: var(--font-size-small);
	background-color: var(--color-secondary);
	border-radius: var(--border-radius-none);
	border: none;
	display: inline-block;
	padding: var(--spacing-xs) var(--spacing-s);
	margin-bottom: var(--spacing-s);
}

.product-summary-column .product_title.entry-title {
	font-weight: var(--font-weight-bold);
	font-size: var(--font-size-large);
	line-height: 2.0rem;
	margin-top: 0;
    margin-bottom:5px;
}


.custom-product-price .woocommerce-Price-amount.amount { 
	font-weight: var(--font-weight-bold);
	font-size: var(--font-size-medium);
	line-height: 1.7rem; 
	
}

.custom-product-price ins {
    color: #e2401c;
    font-size: 1.6rem;
    margin-left:10px;
}

.product-sale-period {
    display: inline-flex;
    width:fit-content;
	margin-top: var(--spacing-s);
	padding: 5px 10px;
	background-color: #f8f8f8;
	border-radius: var(--border-radius-small);
	color: var(--color-black);
	font-size: var(--font-size-small);
}

.product-sale-period .sale-period-text {
	display: block;
	line-height: var(--line-height-base);
    font-weight: 400;
}



.single-product-layout {
    display: flex;
    flex-wrap: wrap; 
}

.product-gallery-column {
    width: 60%;
    padding-right: var(--spacing-l); 
    box-sizing: border-box;
}

.product-summary-column {
    width: 40%;
    padding-left: var(--spacing-l); 
    box-sizing: border-box;
}


.custom-product-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-s); 
    min-height: 260px; 
}

.gallery-item { 
	box-sizing: border-box;
}

.custom-product-gallery .gallery-item-large { 
	width: 100%; 
	margin-bottom: var(--spacing-s); 
}

.custom-product-gallery .gallery-row-small { 
	display: flex;
	width: 100%;
	gap: var(--spacing-s); 
	margin-bottom: var(--spacing-s); 
}

.custom-product-gallery .gallery-item-small { 
	flex: 1; 
}


*, *::before, *::after {
	box-sizing: border-box;
}

.gallery-item img { 
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; 
}


@media (max-width: 768px) {

    .custom-product-gallery {
        display: block; 
        width: 100%;
        position: relative;
        overflow: hidden; 
              min-height: 260px; 
             }
            
             .custom-product-gallery .swiper-wrapper {
        display: flex;
        box-sizing: content-box;
          }
         
          .custom-product-gallery .swiper-slide {
        width: 88%; 
        flex-shrink: 0;
        box-sizing: border-box;
        position: relative;
          }
         
          
    .custom-product-gallery .swiper-slide .gallery-item-large,
    .custom-product-gallery .swiper-slide .gallery-row-small,
    .custom-product-gallery .swiper-slide .gallery-item-full {
    	width: 100%;
    	margin-bottom: 0;
    }
   
    .swiper-slide .gallery-item img { 
    	width: 100%;
    	min-height: 260px;
    	height: 260px; 
        max-height: 260px; 
    	object-fit: cover;
    }
   
    
    .custom-product-gallery {
        padding-right: var(--spacing-l); 
    	padding-right: clamp(var(--spacing-xs), 5vw, var(--spacing-l)); 
    }
   
    
    .custom-product-gallery .swiper-pagination {
    	position: absolute;
    	bottom: var(--spacing-s);
    	left: var(--spacing-s);
    	 
    	text-align: left;
    	z-index: 10;
    }
   
    .custom-product-gallery .swiper-pagination-bullet {
    	width: 8px;
    	height: 8px;
    	display: inline-block;
    	border-radius: 50%;
    	background: var(--color-swiper-bullet);
    	opacity: 0.2;
    	margin: 0 4px;
    }
   
    .custom-product-gallery .swiper-pagination-bullet-active {
    	opacity: 1;
    	background: var(--color-swiper-bullet-active);
    }
}


.product-gallery-column .woocommerce-product-gallery {
    
     
}








.product-details-accordion {
	margin-top: var(--spacing-xl); 
	border-top: 1px solid var(--color-border-light);
}

.accordion-item {
	border-bottom: 1px solid var(--color-border-light);
}
.accordion-item:last-child {
	 
}

.accordion-title {
	padding: 7px 0; 
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--font-size-small); 
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase; 
	letter-spacing: 0.5px; 
	color: var(--color-text-default);
}

.accordion-arrow {
	width: 12px; 
	height: 12px; 
	background-image: url('../images/arrow-down.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: transform 0.3s ease-in-out; 
	display: inline-block;
	margin-left: var(--spacing-s); 
}

.accordion-item.active .accordion-arrow {
	transform: rotate(180deg); 
}

.accordion-content {
    height: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
	font-size: 0.85em; 
	color: var(--color-text-muted);
	line-height: var(--line-height-base);
    padding: 0 var(--spacing-xs); 
}

.accordion-item.active .accordion-content {
    height: 100%; 
    padding: 0px;
    margin-bottom:20px;
}


.accordion-content[hidden] {
	display: none; 
}

.accordion-content p:last-child {
    margin-bottom: 0;
}





@media (min-width: 769px) and (max-width: 1024px) {
    
    
    .product-gallery-column,
    .product-summary-column {
        width: 50%;
        padding-left: var(--spacing-m); 
        padding-right: var(--spacing-m);
    }
    
    .custom-product-price {
        margin-bottom: var(--spacing-xl); 
    }
    .product-summary-column .product_title.entry-title {
        font-size: 1.4rem;
    }
}


@media (max-width: 768px) {
    
	.product-gallery-column,
	.product-summary-column {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.product-summary-column {
		margin-top: var(--spacing-l);
	}

	.product-sale-period {
		margin-top: var(--spacing-xs);
		padding: var(--spacing-xs) var(--spacing-s);
		font-size: 0.8rem;
	}
    
    .accordion-title {
        padding-top: var(--spacing-s);
        padding-bottom: var(--spacing-s);
        min-height: 44px; 
    }
    .woocommerce div.product form.cart .single_add_to_cart_button {
        padding: var(--spacing-m); 
        min-height: 44px;
    }
     .product-summary-column .product_title.entry-title {
        font-size: 1.3rem;
        line-height: 1.8rem;
    }
}


.size-guide-popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
     
    background-color: rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-out, visibility .0s linear .3s; 
   }
   
   .size-guide-popup.active {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease-out, visibility .0s linear .0s; 
   }

   .size-guide-popup-content {
    background-color: var(--color-white);
    margin: auto; 
    padding: 50px;
    border: 1px solid #888; 
    width: 100%;
    max-width: 700px; 
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: var(--border-radius-small);
    opacity: 0;
    transform: translateY(-50px);
    transition: transform .5s ease-out, opacity .5s ease-out;
   }

   .size-guide-popup.active .size-guide-popup-content {
    opacity: 1;
    transform: translateY(0);
   }


   
   .size-guide-popup-close {
    color: #aaa; 
    float: right;
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    position: absolute; 
    top: 5px;
    right: 5px;
   }
   
   .size-guide-popup-close:hover,
   .size-guide-popup-close:focus {
    color: var(--color-black);
    text-decoration: none;
    cursor: pointer;
   }
   
   .size-guide-popup-title { 
    margin-top: 0;
    margin-bottom: 80px;
    font-size: var(--font-size-medium); 
    font-weight: var(--font-weight-bold);
    text-align: center;
   }
   
   .size-guide-acf-content img { 
    max-width: 100%;
    height: auto;
   }


.size-guide-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--spacing-m);
}

.size-guide-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0; 
    display: flex;
}

@media (max-width: 768px) {
    .size-guide-popup-content {
        padding:20px;
    }
    .size-guide-table th {
        font-size:12px;
    }
}


.unit-switcher {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border-light);
    border-radius: 20px; 
    padding: 2px;
    position: relative;
}

.unit-button {
    background: none;
    border: none;
    padding: var(--spacing-xs) var(--spacing-s);
    cursor: pointer;
    font-size: 0.8rem; 
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    z-index: 2; 
    position: relative;
    transition: color 0.3s ease;
}

.unit-button.active {
    color: var(--color-white); 
}

.unit-toggle-slider-container {
    width: 30px; 
    height: 20px; 
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 -2px; 
}

.unit-toggle-slider {
    background-color: var(--color-primary);
    border-radius: 15px; 
    width: calc(50% + 4px); 
    height: 100%;
    position: absolute;
    top: 0;
    left: -2px; 
    transition: transform 0.3s ease-in-out;
    z-index: 1; 
}


.size-guide-tabs {
    margin-top: var(--spacing-m);
}






.size-guide-tabs-nav li {
    margin-right: var(--spacing-s);
}

.size-guide-tabs-nav a {
    display: block;
    padding: var(--spacing-s) var(--spacing-m);
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-semibold);
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.size-guide-tabs-nav a:hover {
    color: var(--color-text-default);
}

.size-guide-tabs-nav a.active {
    color: var(--color-text-default);
    border-bottom-color: var(--color-primary);
}

.size-guide-tab-content {
    display: none; 
    padding: var(--spacing-s) 0;
    animation: fadeIn 0.5s; 
}

.size-guide-tab-content.active {
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-s);
    font-size: var(--font-size-small);
}

.size-guide-table th,
.size-guide-table td {
    border: 1px solid var(--color-border-light);
    padding: var(--spacing-m); 
    text-align: left;
}

.size-guide-table th {
    background-color: var(--color-primary); 
    color: var(--color-white); 
    font-weight: var(--font-weight-semibold);
}

.size-guide-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; 
}


.measuring-guide-flex {
    display: flex;
    gap: var(--spacing-m);
    align-items: flex-start; 
}

.measuring-guide-image {
    flex: 0 0 150px; 
    max-width: 150px;
}

.measuring-guide-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.measuring-guide-text {
    flex: 1;
    font-size: var(--font-size-small);
    line-height: var(--line-height-base);
}

.measuring-guide-text h5 {
    margin-top: 0;
    margin-bottom: var(--spacing-s);
    font-weight: var(--font-weight-semibold);
}

.measuring-guide-text ol {
    padding-left: var(--spacing-m);
    margin: 0;
}
.measuring-guide-text ol li {
    margin-bottom: var(--spacing-xs);
}

@media (max-width: 480px) { 
    .measuring-guide-flex {
        flex-direction: column;
    }
    .measuring-guide-image {
        flex: 0 0 auto; 
        width: 100%;
        max-width: 200px; 
    }
}


button#open-size-guide-popup.trigger-size-guide-header {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-link); 
    text-decoration: underline;
    font-size: inherit; 
    font-weight: normal; 
    line-height: inherit; 
    cursor: pointer;
    
    border-radius: 0; 
    box-shadow: none;
}

button#open-size-guide-popup.trigger-size-guide-header:hover {
    color: var(--color-link-hover); 
}
   
   
   .woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-m) var(--spacing-l);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    letter-spacing: 1px;
    border-radius: var(--border-radius-none);
    width: 100%; 
    margin-top: var(--spacing-l); 
    transition: background-color 0.3s ease;
    display: block; 
    box-sizing: border-box; 
   }
   
   .woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: var(--color-primary-hover);
   }
   
   .woocommerce div.product form.cart .single_add_to_cart_button.disabled,
   .woocommerce div.product form.cart .single_add_to_cart_button.wc-variation-selection-needed {
    background-color: #003366;
    cursor: not-allowed;
   }
   
   
   .woocommerce div.product form.cart .quantity {
    margin-right: var(--spacing-s); 
     
    margin-bottom: var(--spacing-s); 
    display: block; 
   }
   
   
   .woocommerce-breadcrumb {
    font-size: 0.7rem; 
    margin-top: var(--spacing-m);
    margin-bottom: var(--spacing-m);
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    gap:5px;
   
   }
   .woocommerce-breadcrumb::-webkit-scrollbar {
    display: none;
   }
   
   .woocommerce-breadcrumb a {
    color: var(--color-link);
    text-decoration: none;
   }
   
   .woocommerce-breadcrumb a:hover {
    color: var(--color-link-hover);
   }
   
   .woocommerce-breadcrumb .delimiter {
    margin: 0 0.5em; 
}



.acf-product-group-title {
    display:flex;
    margin-top:40px;
    font-weight: bold;
    font-size: 0.9em;
    color: #212121;
    margin-bottom: 8px; 
    width: 100%; 
    box-sizing: border-box; 
}

.acf-product-group-display-single {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    margin-top: 15px;
    margin-bottom: 30px; 
}

.acf-product-group-display-single .acf-related-product-thumb {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 90px; 
    min-width:100px;  
    max-width: 100px; 
    height: 100px;    
    min-height:100px;
    max-height:100px;
    border: 1px solid var(--color-border-light, #e0e0e0);
    padding: 5px;
    box-sizing: border-box;
    background-color: var(--color-white, #fff);
    border-radius: var(--border-radius-small, 3px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.acf-product-group-display-single .acf-related-product-thumb:hover {
   border:1px solid #003366;

}
.acf-product-group-display-single .acf-related-product-thumb.active-product-item {
    border: 1px solid var(--color-primary, #003366);
    padding: 3px; 
}

.acf-product-group-display-single .acf-related-product-thumb img {
    max-width: 100%;
    max-height: 100%; 
    height:100px;
    object-fit: cover;
    display: block;
}


@media (min-width: 769px) and (max-width: 1024px) {
    .acf-product-group-display-single {
        gap: 10px; 
    }
    .acf-product-group-display-single .acf-related-product-thumb {
        
        flex-basis: calc((100% - 3 * 10px) / 4); 
        max-width: calc((100% - 3 * 10px) / 4);
        min-width: 75px; 
        height: 110px; 
    }
    .acf-product-group-display-single .acf-related-product-thumb img {
        max-height: 100%; 
    }
}


@media (max-width: 768px) {
    .acf-product-group-display-single {
        gap: 8px; 
    }
    .acf-product-group-display-single .acf-related-product-thumb {
        
        flex-direction: column;
        align-items: center;
        justify-content: center;

        
        flex-basis: calc((100% - 2 * 8px) / 5); 
        max-width: calc((100% - 2 * 8px) / 5);
        width: 100%; 
        height: auto;    
        padding: 4px;    
    }

    .acf-product-group-display-single .acf-related-product-thumb img {
        max-height: 100%; 
    }
}



@media (min-width: 769px) {
    .single-product-layout {
        align-items: flex-start; 
    }

    .product-summary-column {
        position: -webkit-sticky; 
        position: sticky;
        top: 150px; 
        height: fit-content; 
        
    }

    
    .custom-product-gallery {
        display: block; 
        
    }

    .custom-product-gallery .gallery-item-large,
    .custom-product-gallery .gallery-row-small {
        width: 100%;
        margin-bottom: var(--spacing-s); 
    }
    
    .custom-product-gallery .gallery-row-small {
        display: block; 
        
    }

    .custom-product-gallery .gallery-item-small {
        width: 100% !important; 
        flex: none !important; 
        margin-bottom: var(--spacing-s); 
    }

    
    .custom-product-gallery > *:last-child {
        margin-bottom: 0;
    }

    
    .custom-product-gallery > .gallery-row-small:last-child > .gallery-item-small:last-child {
        margin-bottom: 0;
    }
    
    
    .custom-product-gallery .gallery-row-small > .gallery-item-small:last-child {
        margin-bottom: 0; 
    }
}


body.no-scroll {
    overflow: hidden;
}

.star-rating span::before {
    color:goldenrod;
}

.woocommerce-product-rating {
	display:inline-flex;
	gap:10px;
	margin-bottom:20px;
}

.product-features-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    margin-top: 30px; 
    margin-bottom: 0px; 
    padding-bottom: 0px; 
}

.feature-item {
    display: flex;
    align-items: center; 
    text-align: left; 
    border-right:1px solid #eaeaea;
}

.feature-icon {
    width: auto; 
    height: 20px; 
    margin-right: 15px; 
    flex-shrink: 0; 
    object-fit: contain;;
}

.feature-text p {
    margin: 0;
    font-size: 14px; 
    line-height: 1.4;
}

.feature-text .feature-title {
    font-weight: bold;
}

.related.products ul.products {
    width:100%;
}


@media (max-width: 768px) {
    .product-features-icons {
        grid-template-columns: 1fr; 
        gap: 15px;
    }

    .feature-icon {
        width:40px;
    }

    .feature-item {
        padding-bottom: 15px;
        border-bottom: 1px solid #f0f0f0; 
        border-right:none;
    }

    .feature-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}



@media (max-width: 768px) { 
	.related.products ul.products li.product {
		width: 100% !important; 
		margin-right: 0 !important;
		float: none !important;
		clear: both !important; 
		margin-bottom: 20px; 
	}
	
	.related.products ul.products li.product:nth-child(2n),
	.related.products ul.products li.product:nth-child(2n+1) {
		margin-right: 0 !important;
		clear: none !important;
	}
}


.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .custom-naziv-malo,
.woocommerce div.product .custom-naziv-malo {
    color: #212121;
    font-size: 1rem;
    margin: 6px 0px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-x: hidden; 
    text-overflow: ellipsis;
    line-height: 1.3em;
    max-width: 100%;
    word-break: break-word; 
}

.product-category {
    margin-bottom:0px;
    font-size:0.85em;
}

.cr-qna-block .cr-input-text {
    padding:20px 40px;
}

.cr-summaryBox-wrap .cr-histogramTable {
    display:none;
}

.cr-all-reviews-shortcode .cr-summaryBox-wrap.cr-summaryBox-add-review .cr-summary-separator {
    display:none;
}

.cr-all-reviews-shortcode .cr-summaryBox-wrap.cr-summaryBox-add-review .cr-overall-rating-wrap, .cr-all-reviews-shortcode .cr-summaryBox-wrap.cr-summaryBox-add-review .cr-add-review-wrap {
    width:100%;
}

.cr-qna-block .cr-qna-list-block div.cr-qna-list-empty {
    text-align: left;
    padding:10px 0px;
    font-weight: 400;
}

.cr-all-reviews-shortcode .cr-ajax-search .cr-input-text, .cr-ajax-search input[type="text"] {
    border: none;
    border-bottom: 1px solid;
    border-radius: 0px;
    padding:20px 40px;
}

.cr-all-reviews-shortcode .cr-summaryBox-wrap, .cr-reviews-grid .cr-summaryBox-wrap {
    border-radius:20px;
    padding:20px;
}

.cr-search-no-reviews {
    font-weight: 400;
}

.woocommerce ul.products .product-brand { 
    color: #212121;
    font-size: 0.75rem;
    text-transform: uppercase !important;
    font-weight: 400;
    margin-bottom: 0px;
}

.woocommerce ul.products li.product .star-rating {
    color: #003366; 
    font-size: 0.75em !important;
    margin-bottom: 12px !important;
}


.woocommerce ul.products li.product .star-rating span::before {
    color: goldenrod !important; 
}

.woocommerce ul.products ins {
    color: #ac1311;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex !important;
    margin-left: 2px;
}

.woocommerce ul.products del {
    color: #212121;
    font-size: 16px;
    display: inline-flex !important;
    font-weight: 400;
}


.related.products ul.products li.product .related-product-brand {
    color: #212121;
    font-size: 0.75rem;
    text-transform: uppercase !important;
    font-weight: 400;
    margin-bottom: 0px;
    display: block; 
}
.single-product section.related.products { 
    display: block; 
    clear: both; 
    width: 100%; 
    margin-bottom: 100px !important; 
    position: relative; 
    z-index: 1; 
    background-color: #fff; 
}

.related.products {
	display:flex;
  flex-wrap:wrap;
	width:100%;
	margin:60px 0px;
}

.related.products h2 {
    width:100%;
}





.woocommerce ul.products li.product a img {
	max-height: 240px; 
    min-height: 150px;
	height: auto; 
	width: 100%;
	object-fit: cover;
	display: block; 
	margin-left: auto; 
	margin-right: auto;
}


.woocommerce ul.products[class*="columns-"] li.product {
	padding: 0px;
	background: #fff;
    display: flex; 
    flex-direction: column; 
    min-height: 400px; 
}




@media screen and (max-width: 47.9375em) {
	
	.mobile-cols-1 ul.products li.product,
	ul.products:not([class*="mobile-cols-"]) li.product { 
		width: 100% !important;
		margin-right: 0 !important;
		float: none !important;
		clear: both !important;
	}

	
	.mobile-cols-2 ul.products li.product {
		width: 48% !important; 
		margin-right: 4% !important;
		float: left !important;
		clear: none !important;
	}

	.mobile-cols-2 ul.products li.product:nth-child(2n) {
		margin-right: 0 !important;
	}

	.mobile-cols-2 ul.products li.product:nth-child(2n+1) {
		clear: left !important;
	}
}


@media screen and (min-width: 48em) and (max-width: 63.9375em) {
	ul.products.columns-2 li.product,
	ul.products.columns-3 li.product,
	ul.products.columns-4 li.product {
		width: 48.5% !important; 
		margin-right: 3% !important;
		float: left;
		clear: none; 
	}

	ul.products.columns-2 li.product:nth-child(2n),
	ul.products.columns-3 li.product:nth-child(2n),
	ul.products.columns-4 li.product:nth-child(2n) {
		margin-right: 0 !important;
	}

	ul.products.columns-2 li.product:nth-child(2n+1),
	ul.products.columns-3 li.product:nth-child(2n+1),
	ul.products.columns-4 li.product:nth-child(2n+1) {
		clear: left; 
	}
}


@media screen and (min-width: 64em) {
	
	ul.products.columns-4 li.product {
		width: 24.25% !important; 
		margin-right: 1% !important; 
		float: left;
		clear: none; 
	}
	ul.products.columns-4 li.product:nth-child(4n) {
		margin-right: 0 !important;
	}
	ul.products.columns-4 li.product:nth-child(4n+1) {
		clear: left; 
	}

	
	ul.products.columns-3 li.product {
		width: 32% !important; 
		margin-right: 2% !important;
		float: left;
		clear: none; 
	}
	ul.products.columns-3 li.product:nth-child(3n) {
		margin-right: 0 !important;
	}
	ul.products.columns-3 li.product:nth-child(3n+1) {
		clear: left; 
	}

	
	ul.products.columns-2 li.product {
		width: 48.5% !important; 
		margin-right: 3% !important;
		float: left;
		clear: none; 
	}
	ul.products.columns-2 li.product:nth-child(2n) {
		margin-right: 0 !important;
	}
	ul.products.columns-2 li.product:nth-child(2n+1) {
		clear: left; 
	}
}


.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button, 
.woocommerce ul.products li.product .product-stock-status-info {
    margin-left: 0; 
    margin-right: auto; 
    align-self: flex-start; 
    width: 100%; 
    text-align: left; 
    padding-bottom:10px;
}
