/**
* Theme Name: Ekommart Child
* Description: This is a child theme of Ekommart, generated by Merlin WP.
* Author: <a href="https://www.wpopal.com/">Duc Pham (Opal Team)</a>
* Template: ekommart
* Version: 1.7.2
*/

/* Main Navigation */
.header-12 .main-navigation ul.menu>li.menu-item>a , .main-navigation ul li.menu-item>a {
	transition: color 0.3s ease;
}

/* form hr line */
.wpcf7-form hr {
	background-color: transparent;
	width: 100%;
}

/* Breadcrumb */
.woocommerce-breadcrumb .breadcrumb:not(:first-of-type) a::before {
    display: none;
}

/* Polylang - language switcher */

.language-switchcer {
    position: relative;
}

i.language-current.dashicons-admin-site {
    font-family: "dashicons";
    font-style: normal;
    font-size: 1.6rem;
    color: rgba(255,255,255,1);
    transition: color 0.3s ease;
    cursor: pointer; 
}
i.language-current.dashicons-admin-site:hover {
    color: white;
}
.header-sticky i.language-current.dashicons-admin-site {
	color: #000;
}
.header-sticky i.language-current.dashicons-admin-site:hover {
	color: #000;
}
.language-switchcer:before {
    background: rgba(0,0,0,.6);
    color: white;
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    left: 24px;
    padding: 3px;
    margin: 3px 0;
    border-radius: 2px;
}
html[lang="en-US"] .language-switchcer:before {
    content: "EN"
}
html[lang="ja"] .language-switchcer:before {
    content: "JP"
}
.header-group-action {
    max-height: 63.5px;
}
.header-group-action > div:not(:last-child).language-switchcer {
    margin-right: 20px;
    text-align: center;
    transform: translateY(30px);
}
.language-switchcer > ul {
    margin: 0;
    display: block;
    opacity: 0;
    transform: translateY(80px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    list-style: none;
    pointer-events: none;
    background: rgba(0,0,0,.6);
    border-radius: 3px;
	border: 1px solid rgba(0,0,0,.3);
    overflow: hidden;
}

.language-switchcer > ul > li {
    display: block;
}

.language-switchcer > ul > li > a {
    display: block;
    padding: 5px 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}
.language-switchcer > ul > li:hover > a {
    background: white;
    color: #F39800;
}
.language-switchcer:hover > ul {
    opacity: 1;
    transform: translateY(10px);
    pointer-events: auto;
}

/* Themfy Builder with Redux framwork direction Issue */
.themify_builder .row_inner.direction-rtl {
	direction: ltr;
}

h3.elementor-image-box-title {
	font-size: 16px;
    letter-spacing: 0.2px;
}

.woocommerce-product-details__short-description > h2 {
	color: #BA1B21;
    font-family: "Tahoma", Sans-serif;
    font-size: 18px;
}

.ekommart-handheld-footer-bar ul.columns-3 li {
	width: 50%;
}
.ekommart-handheld-footer-bar ul li.my-account {
	display: none;
}
.woocommerce-Tabs-panel .wpcf7-form-control-wrap .wpcf7-radio label {
	line-height: 2rem;
}
.woocommerce-Tabs-panel .wpcf7-form-control-wrap .wpcf7-radio input {
	width: auto;
    margin: 0 0.5rem 0 0;
}

/* Popup Padding Issue */

@media (min-width: 768px) {
	html.pum-open.pum-open-overlay.pum-open-fixed body {
		padding-right: 16.5px;
	}
	html.pum-open.pum-open-overlay.pum-open-fixed .ekommart-sticky-add-to-cart--slideInDown {
		padding-right: 34.5px;
	}
}

/* Megamenu - Products, Videos */

.tabset label:hover {
	cursor: pointer;
}
.tabset .tab-panel {
	height: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.tabset .tab-panel.video-tab-panel,
.tabset .tab-panel.active {
	/*height: calc( (100vw - 10px * 2) / 8 * 2 + 31.5px * 4 );*/
	height: fit-content;
	min-height:80px;
	opacity: 1;
}
.tabset {
	/* display: flex; */
	/* justify-content: center; */
	/* flex-wrap: wrap; */
	/*margin: 0;*/
}
.tabset > .tabs {
	display: flex;
	justify-content: center;
}
.tabset > .tabs > div {
	font-size: 16px;
	line-height: 4;
	font-weight: 600;
	padding: 0 12px;
	text-transform: uppercase;
	transition: color 0.3s ease;
	cursor: pointer;
}
.tabset > .tabs > div.active {
	color: #f39800;
}
.tab-panels {
	width: 100%;
}
.tab-panel {
	/*height: calc( (100vw - 10px * 2) / 8 + 31.5px * 2 );*/
	height: fit-content;
	overflow-y: auto;
}
.tab-panel.video-tab-panel {
	/*height: calc( (100vw - 10px * 2) / 8 + 20px * 2 );*/
	height: fit-content;
}

.main-navigation ul .tab-panel > ul,
.tab-panel > ul {
	list-style: none;
	margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
}
.tab-panel > ul > li {
	padding: 15px;
	width: calc(100% / 8);
}
.main-navigation ul ul.sub-menu .tab-panel > ul > li > a:not(.elementor-button-link),
.tab-panel > ul > li > a {
	display: block;
	font-size: 14px;
	line-height: 20px;
	font-weight: 300; /*字體粗細*/
	
	overflow: hidden;
	width: auto;
}
.tab-panel > ul > li > a:nth-child(1) {
	width: auto;
	border: 1px solid rgba(0,0,0,.3);
	height: 0;
	padding-top: 100%!important;
	position: relative;
}
.main-navigation ul ul.sub-menu .tab-panel > ul > li > a:not(.elementor-button-link):nth-child(2),
.tab-panel > ul > li > a:nth-child(2) {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: center;
}
.tab-panel > ul > li > a > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
	position: absolute;
	top: 0;
	left: 0;
}
.tab-panel > ul > li:hover > a {
	background: transparent!important;
}
.tab-panel > ul > li:hover > a > img {
	transform: scale(1.2);
}

/* Single Product Tabs */

.ekommart-full-width-content.single-product div.product .woocommerce-tabs {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.single-product.ekommart-full-width-content .woocommerce-tabs ul.tabs {
    background: #000;
    width: 100%;
	padding-bottom: 0;
}
.single-product .woocommerce-Tabs-panel {
    max-width: 1290px;
	width: 100%;
	padding: 0 10px;
}
@media (min-width: 768px) {
	.single-product .woocommerce-Tabs-panel {
		padding: 0;
	}
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li {
	position: relative;
	flex: 1 1 0;
}
@media (min-width: 768px) {
	.single-product .woocommerce-tabs ul.tabs.wc-tabs li {
		flex: 0 0 0;
	}
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
    padding: 16px;
	color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 20px;
	text-align: center;
	transition: color 0.3s ease, background 0.3s ease;
}
@media (min-width: 768px) {
	.single-product .woocommerce-tabs ul.tabs.wc-tabs li a {
		font-size: 16px;
		line-height: 27px;
		width: 210px;
	}
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a {
    color: #FFFFFF;
    background: #F39800;
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active:after {
    content: '';
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 8px 0 8px;
    border-color: #F39800 transparent transparent transparent;
    background-color: transparent;
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li a:before {
	content: "";
    display: block;
    width: 48px;
    height: 48px;
	text-align: center;
	margin: 0 auto;
	opacity: 0.75;
	transition: opacity 0.3s ease;
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.active a:before {
	opacity: 1;
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.description_tab a:before {
    background: var(--wpr-bg-45543131-f507-4ba7-a8c0-1ff9330cb74c);
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.additional_information_tab a:before {
    background: var(--wpr-bg-d4250f61-c926-4c6b-87f7-404f3bea5604);
}
.single-product .woocommerce-tabs ul.tabs.wc-tabs li.inquiry_tab a:before {
    background: var(--wpr-bg-e708ee7f-685f-434e-9920-2cd85f978a3e);
}

.theme-ekommart .module.module-text {
	margin-bottom: 0!important;
}
.module.module-text .tb_text_wrap p {
	margin-bottom: 8px;
}
.module.module-text .tb_text_wrap h2 {
	margin-bottom: 0;
}

.elementor-widget-container,
.elementor-widget-container p,
.elementor-widget-icon-list.elementor-widget:not(:last-child),
.elementor-widget-text-editor.elementor-widget:not(:last-child) {
    margin-block-end: 0px;
	margin-bottom: 0px;
}

[lang="jp"] .cky-consent-container {
	display: none;
}

.themify_builder_content table {
  border-spacing: 0px;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  margin-bottom: 15px;
  background-color: transparent; /* Change the background-color of table here */
/*   text-align: left; Change the text-alignment of table here */
}

.themify_builder_content th {
/*   font-weight: bold; */
  border: 1px solid #cccccc; /* Change the border-color of heading here */
  padding: 8px;
	word-break: break-word;
}

.themify_builder_content td {
  border: 1px solid #cccccc; /* Change the border-color of cells here */
  padding: 8px;
	word-break: break-word;
}
