/*
	Theme Name: Glacier Child
	Theme URI: http://wordpress.mountainthemes.dev/glacier
	Description: Glacier Child Theme
	Author: Mountain-Themes
	Author URI: https://themeforest.net/user/mountain-themes
	Template: glacier
	Version: 1.0.0
	License: GNU General Public License version 3.0 & Envato Regular/Extended License
	License URI:  http://www.gnu.org/licenses/gpl-3.0.html & http://themeforest.net/licenses
	Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, featured-images, full-width-template, theme-options, translation-ready
	Text Domain: glacier-child
*/


/* Copy any classes from parent theme here. They will override the parent's version. */

/* Move WooCommerce price to the right in Glacier theme */
/* .woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    text-align: right !important;
    float: none !important;
    justify-content: flex-end !important;
} */

/* Hide the variant label column only when swatches are active */
.jh-swatches-enabled table.variations th.label {
    display: none !important;
}

/* Make the value column full width */
.jh-swatches-enabled table.variations td.value {
    width: 100% !important;
    padding-left: 0 !important;
}

/* Label above swatches */
.jh-label-row {
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.jh-hidden { display:none !important; }

.jh-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;

    /* your original spacing */
    gap: 12px;

    /* ensure no inherited padding/margin interferes */
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove inline-block whitespace (safety) */
.jh-swatches > * {
    font-size: 0 !important;
}

.jh-swatch {
    /* RESET */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    line-height: 1 !important;
    box-sizing: border-box;

    /* YOUR ORIGINAL DESIGN */
    border: 2px solid #ddd !important;
    border-radius: 8px;
    background: #fff !important;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: .15s;

    /* ensures rows align perfectly */
    width: 70px;
	flex: 1 1 70px;
}

/* Restore normal font size inside the button */
.jh-swatch * {
    font-size: initial !important;
}

/* Hover + active states (your original) */
.jh-swatch:hover {
    border-color: #999 !important;
}

.jh-swatch.jh-active {
    border-color: #ff6b00 !important;
    box-shadow: 0 0 0 2px rgba(255,107,0,.25);
}

.jh-swatch-img {
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:6px;
    border:1px solid #ccc;
}

.jh-label {
    font-size:11px;
    color:#555;
}


.woocommerce-cart .cart_item dl.variation,
.woocommerce-cart .cart_item dl.variation dt,
.woocommerce-cart .cart_item dl.variation dd {
    font: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

/* oprava related products */

/* Force equal-height product images in Glacier + Isotope */
.related.products .product-images {
    height: 320px; /* adjust to your preferred height */
    overflow: hidden;
}

.related.products .product-images img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* ----------------------------------------------------------
   GLACIER THEME — FIX PRODUCT GRID GAPS COMPLETELY
   Normalizes image height + title height + tile height
----------------------------------------------------------- */

/* 1) Normalize product image height */
.shopContainer .product-images {
    height: 320px;
    overflow: hidden;
}

.shopContainer .product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2) Normalize product title height */
.shopContainer .woo_product-title {
    min-height: 48px; /* adjust depending on your font size */
    display: flex;
    align-items: flex-start;
}

/* 3) Make product details stretch evenly */
.shopContainer .shop_product-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 4) Push price + cart button to bottom */
.shopContainer .shop_product-details .price,
.shopContainer .shop_product-details .shop_cart-button {
    margin-top: auto;
}

/* Price left — Cart icon right */
.price-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* ZOZNAM PRODUKTOV */

.shopContainer.isotope {
    text-align: left !important;
}

.shopContainer.isotope article {
    display: inline-block !important;
    vertical-align: top;
    position: static !important;
    transform: none !important;
	margin-right: 20px;
}

.woo_product-title2 {
	width: 100%;
	display: flex;
	align-items: center !important;   /* vertical alignment */
	justify-content: center !important; /* optional: horizontal alignment */
	min-height: 90px;
	text-align: center;
}

.woo_product-title2 h4 {
	line-height: 1.6;
}
