/*
Theme Name: Lustgården
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 4.1.1
*/

/* Set max-height on single product image */
.flickity-viewport {
    max-height: 500px;
}

.product-gallery-slider {
    text-align: center;
}

.product-gallery-slider img { width: auto; }

/* Set height in product listing image */

.box-image img {
    object-fit: contain;
    height: 203px;
}

.product-gallery-slider img {
    object-fit: contain;
    height: 392px;
}

p.name.product-title {
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.price-wrapper {
    min-height: 15px;
}

/* Fix category images on homepage */

.home .product-category .box-image img {
    object-fit: unset;
    height: auto;
}

/* Align kr symbol */

.product-summary .woocommerce-Price-currencySymbol {
    vertical-align: baseline;
    margin-top: 0;
}

/* From cart to checkout button */
.cart_totals .wc-proceed-to-checkout .checkout-button {
    background-color: #b00000 !important;
}

/* Hide product category titles on homepage */

/*
.section-prodkat .product-category .box-text {
    display: none;
}
*/

/* Top bar */

@media (min-width: 549px) {
    li.html.custom.html_topbar_left {
        font-size: inherit;
    }
}

#top-bar .nav.mobile-nav li:first-child {
    width: 100%;
    text-align: center;
    margin: 0;
	font-size: 1em;
}

#top-bar .nav.mobile-nav li:nth-child(2) {
    margin: 0;
}

#top-bar img.topbar-payment-icon {
    margin-right: 15px;
}

#top-bar li.html_topbar_right img:last-child {
    margin-right: 0 !important;
}

#top-bar .nav.mobile-nav li.html_nav_position_text_top img:last-child {
    margin-right: 0 !important;
}

/* Smaller sticky header on small devices */

@media (max-width: 850px) {
    .stuck .header-main {
        height: 60px!important;
    }

    .stuck #logo img {
        max-height: 60px!important;
    }
}

/* WC Products per page plugin */

form.form-wppp-select.products-per-page {
    display: inline-block;
    float: none !important;
}

form.form-wppp-select.products-per-page select { margin-right: 10px; }

/* Contact form */

.form-kontakta-oss { max-width: 500px; }

.form-kontakta-oss #rckontakt { margin-bottom: 1em; }

.form-nyhetsbrev #rcnyhetsbrev { margin-bottom: 1em; }

/* Recaptcha on reviews */

#review_form .g-recaptcha {
	width: 100%;
}

@media (min-width: 850px) {
    #review_form .g-recaptcha {
		padding: 0 0 20px 15px;
	}
}

/* Nav and topbar color/opacity */

.nav>li>a,.nav-dropdown>li>a,.nav-column>li>a {
    color: #000;
}

.nav-vertical>li>ul li a {
    color: #000;
}

.nav-vertical>li>ul li a:hover {
    color: #555;
}

.toggle {
    opacity: 1;
}

.has-dropdown .icon-angle-down {
    opacity: 1;
}

/* Intro section */

.intro-section h1.intro-heading, .intro-section h2.intro-heading {
    font-size: 1.3em;
    text-align: center;
}

.intro-section p.intro-text {
    font-size: 0.9em;
}

/* Product cat desc */

.tax-product_cat .term-description h1, .tax-product_cat .term-description h2 {
    font-size: 1.2em;
}

.tax-product_cat .term-description p {
    font-size: 0.8em;
}

/* Cross sells */

.woocommerce-cart .cross-sells .col {
	max-width: 33.33333%;
	flex-basis: 33.33333%;
}

.woocommerce-cart .cross-sells .row-small {
    width: 100%;
	margin: 0;
}


@media (max-width: 549px) {
	.woocommerce-cart .cross-sells .row-small>.col {
		padding: 0;
	}

	.woocommerce-cart .cross-sells .box-image {
		height: 170px;
	}
}

/* Blog */

.box-blog-post .box-image {
    height: auto;
    display: block;
}

.box-blog-post .box-image img {
    width: 100%;
}

.blog-single .entry-meta {
    display: none;
}

/* Product sale badge */

.badge-container .badge-inner {
    line-height: 1.2;
    background-color: #b00000;
	font-size: 85%;
}

/* Bold links in product description */

.product-footer #tab-description a {
    font-weight: 700;
}

/* Misc */

@media (max-width: 549px) {

	li.html.custom.html_topbar_left a {
		font-weight: 900 !important;
	}
}

p.comment-form-extra-text {
	margin-bottom: 1.8em;
	font-size: 0.7em;
	font-weight: bold;
}

.center-child-img div.img {
    margin: 0 auto;
}