/*
Theme Name: Child
Theme URI: http://www.itlinks.com
Template: betheme
Author: ITlinks
Author URI: http://www.itlinks.com
Description: NA
Tags: NA
Version: 1.4.2.1527019513
Updated: 2021-03-14 12:37:13
*/

/* ==========================================================================
   Side cart (Betheme .mfn-cart-holder) — match the Kafferessursen brand
   Brand tokens (same values the shop pages use):
     brown #6f4323 | dark #1b100a | tan #c98b4e | cream #f6efe4
     card border #eadfd5 | muted text #5b4a3f
     headings: Cormorant Garamond 700 | body: Poppins | buttons: Roboto
   ========================================================================== */

body .mfn-cart-holder {
	--mfn-woo-themecolor: #6f4323;
	--mfn-woo-bg-themecolor: #6f4323;
	--mfn-woo-border-themecolor: #6f4323;
	--mfn-woo-body-color: #5b4a3f;
	--mfn-woo-heading-color: #1b100a;
	--mfn-woo-border: #eadfd5;
	--mfn-woo-bg-box: #ffffff;
	--mfn-woo-text-option-color: #5b4a3f;
	--mfn-woo-text-option-color-hover: #6f4323;
	background-color: #f6efe4;
	color: #5b4a3f;
	box-shadow: -8px 0 30px rgba(27, 16, 10, .18);
}

/* Header */
body .mfn-cart-holder .mfn-ch-header {
	background-color: #ffffff;
	border-bottom: 1px solid #eadfd5;
}
body .mfn-cart-holder .mfn-ch-header h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 34px;
	color: #1b100a;
	align-items: center;
}
body .mfn-cart-holder .mfn-ch-header h3 svg .path { stroke: #6f4323; }
body .mfn-cart-holder .mfn-ch-header .mfn-close-icon,
body .mfn-cart-holder .mfn-ch-header .mfn-close-icon .icon { color: #6f4323; }
body .mfn-cart-holder .mfn-ch-header .mfn-close-icon:hover,
body .mfn-cart-holder .mfn-ch-header .mfn-close-icon:hover .icon { color: #1b100a; }

/* Product cards — same look as the shop product cards */
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product {
	background-color: #ffffff;
	border: 1px solid #eadfd5;
	border-radius: 12px;
	overflow: hidden;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info {
	border-right-color: #eadfd5;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info .mfn-chp-name {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info .mfn-chp-name a {
	color: #1b100a;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info .mfn-chp-name a:hover {
	color: #6f4323;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info p.price {
	color: #5b4a3f;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info dl.variation dt {
	color: #5b4a3f;
	opacity: .75;
}

/* Prices: brown, semi-bold (same as shop prices) instead of Betheme blue */
body .mfn-cart-holder .woocommerce-Price-amount,
body .mfn-cart-holder .woocommerce-Price-amount bdi,
body .mfn-cart-holder .woocommerce-Price-currencySymbol {
	color: #6f4323;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-price,
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-price .woocommerce-Price-amount {
	font-weight: 600;
	color: #6f4323;
}

/* Product footer row (quantity + remove) */
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-footer {
	background-color: #fbf7f0;
	border-top: 1px solid #eadfd5;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col .quantity .input-text {
	background-color: #ffffff;
	color: #1b100a;
	border-color: #eadfd5;
	border-radius: 8px;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col .quantity .input-text:focus {
	border-color: #6f4323;
	background-color: #ffffff !important;
	color: #1b100a;
}
body .mfn-cart-holder .quantity .quantity-change,
body .mfn-cart-holder .quantity .quantity-change i {
	color: #6f4323;
}
body .mfn-cart-holder .quantity .quantity-change:hover,
body .mfn-cart-holder .quantity .quantity-change:hover i {
	color: #c98b4e;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col a.mfn-chp-remove {
	color: #5b4a3f;
}
body .mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col a.mfn-chp-remove:hover {
	color: #6f4323;
}

/* Footer / totals */
body .mfn-cart-holder .mfn-ch-footer {
	background-color: #ffffff;
	border-top: 1px solid #eadfd5;
	color: #5b4a3f;
}
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total {
	border-top-color: #eadfd5;
	color: #1b100a;
	font-weight: 600;
}
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total strong,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .woocommerce-Price-amount,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .woocommerce-Price-amount bdi {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.2;
	color: #1b100a;
}
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .woocommerce-Price-currencySymbol {
	color: #1b100a;
}
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .includes_tax,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .includes_tax .woocommerce-Price-amount,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .includes_tax .woocommerce-Price-amount bdi,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .includes_tax .woocommerce-Price-currencySymbol {
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #5b4a3f;
}
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row:not(.mfn-chft-total) .woocommerce-Price-amount,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row:not(.mfn-chft-total) .woocommerce-Price-amount bdi,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row:not(.mfn-chft-total) .woocommerce-Price-currencySymbol {
	color: #1b100a;
}

/* Coupon */
body .mfn-cart-holder .mfn-chft-apply-coupon-wrapper .mfn-chft-apply-coupon-switcher,
body .mfn-cart-holder .mfn-sidecart-apply-coupon-wrapper .mfn-sidecart-apply-coupon {
	color: #6f4323;
}
body .mfn-cart-holder .mfn-chft-apply-coupon-wrapper .mfn-chft-apply-coupon-switcher:hover,
body .mfn-cart-holder .mfn-sidecart-apply-coupon-wrapper .mfn-sidecart-apply-coupon:hover {
	color: #c98b4e;
}
body .mfn-cart-holder .mfn-sidecart-apply-coupon-wrapper .mfn-sidecart-apply-coupon-input {
	border-color: #eadfd5;
	border-radius: 6px;
	background-color: #fbf7f0;
	color: #1b100a;
}
body .mfn-cart-holder .mfn-sidecart-apply-coupon-wrapper .mfn-sidecart-apply-coupon-input:focus {
	border-color: #6f4323;
	background-color: #ffffff !important;
	color: #1b100a;
}

/* Checkout button — same as the site's buttons (brown, tan on hover) */
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-buttons a.button,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-buttons a.button.alt {
	background-color: #6f4323;
	color: #ffffff;
	border-color: #6f4323;
	border-radius: 0;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 400;
	padding: 14px 20px;
	transition: background-color .25s ease, color .25s ease;
}
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-buttons a.button:hover,
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-buttons a.button.alt:hover {
	background-color: #c98b4e;
	border-color: #c98b4e;
	color: #1b100a;
}

/* Secondary links (Fortsett å handle / Vis handlekurv) */
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-buttons a:not(.button) {
	color: #5b4a3f;
}
body .mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-buttons a:not(.button):hover {
	color: #6f4323;
}

/* Empty cart */
body .mfn-cart-holder .cart-empty { color: #5b4a3f; }
body .mfn-cart-holder .cart-empty svg .path { stroke: #6f4323; }

/* Overlay behind the cart: warm dark brown instead of black */
body.mfn-cart-opened .mfn-cart-overlay,
html.mfn-cart-opened .mfn-cart-overlay {
	background-color: rgba(27, 16, 10, .7);
}

/* ==========================================================================
   Product images — one fixed size everywhere (shop, categories, related,
   builder product lists, widgets). Every image gets the same square box;
   `contain` shows the whole product with no cropping or stretching, so
   oversized or odd-shaped uploads can no longer break the grid.
   ========================================================================== */

.woocommerce ul.products li.product .image_frame,
.woocommerce ul.products li.product .image_wrapper,
.woocommerce ul.products li.product .image_wrapper > a,
.woocommerce ul.products li.product a.product-loop-thumb {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.woocommerce ul.products li.product .image_wrapper > a {
	aspect-ratio: 1 / 1;
	position: relative;
}

.woocommerce ul.products li.product .image_wrapper img,
.woocommerce ul.products li.product a.product-loop-thumb img,
.woocommerce ul.products li.product .mfn-product-list-gallery-item img,
.woocommerce ul.products li.product > a > img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img.wp-post-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	background-color: #ffffff;
}

/* Gallery-slider / hover-image variants: items fill the same square */
.woocommerce ul.products li.product .mfn-product-list-gallery-item {
	aspect-ratio: 1 / 1;
}
.woocommerce ul.products li.product .image_wrapper img.image-secondary {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	object-fit: contain;
}

/* Widgets, cart, mini-cart and checkout thumbnails */
.widget_products img,
.widget_top_rated_products img,
.widget_recent_reviews img,
.woocommerce-cart-form img.attachment-woocommerce_thumbnail,
.woocommerce-mini-cart img,
.woocommerce-checkout-review-order img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background-color: #ffffff;
}

/* ==========================================================================
   Category page — subcategory tiles (BeBuilder "Shop categories" element)
   Betheme has no setting to centre an incomplete row, so the list is a centred
   flex row. Tile width follows the element's own "Columns" setting (2/3/4) and
   uses the same 26px gap as the product grid below, so both line up.
   Only Betheme's existing classes are used.
   ========================================================================== */
body .column_shop_categories .shop_categories ul.products {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px;
	margin: 0 12px 40px; /* 12px sides = same edges as the product grid below */
}
body .column_shop_categories .shop_categories ul.products:before,
body .column_shop_categories .shop_categories ul.products:after {
	display: none;
}
body .column_shop_categories .shop_categories .woocommerce ul.products li.product {
	float: none;
	margin: 0;
	width: calc((100% - 78px) / 4); /* 4 columns (default) */
}
body .column_shop_categories .shop_categories .woocommerce.columns-3 ul.products li.product {
	width: calc((100% - 52px) / 3);
}
body .column_shop_categories .shop_categories .woocommerce.columns-2 ul.products li.product {
	width: calc((100% - 26px) / 2);
}
/* The whole tile is the link and fills the card; photos are cropped to one shape */
body .column_shop_categories .shop_categories ul.products li.product > a {
	display: flex;
	flex-direction: column;
	height: 100%;
}
body .column_shop_categories .shop_categories ul.products li.product > a > img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
@media (max-width: 767px) {
	body .column_shop_categories .shop_categories .woocommerce ul.products li.product,
	body .column_shop_categories .shop_categories .woocommerce.columns-3 ul.products li.product,
	body .column_shop_categories .shop_categories .woocommerce.columns-2 ul.products li.product {
		width: calc((100% - 26px) / 2);
	}
}
