/**
 * legacy.css — CSS custom port nguyên văn từ "Additional CSS" của flatsome-child cũ.
 *
 * Nguồn: WP core Additional CSS (post custom_css `flatsome-child`, ID 4550 trên prod).
 * Khi switch theme flatsome-child -> audioplus-theme, Additional CSS gắn theo slug theme
 * không tự chuyển nên giao diện mất styling này (card sản phẩm, font, footer, sidebar...).
 *
 * Port NGUYÊN VĂN để khôi phục giao diện y hệt prod cũ. KHÔNG refactor ở bước này —
 * selector còn global (.product-small, .section-footer...) + nhiều !important, sẽ chuyển dần
 * sang scope .apls-* khi redesign từng phần.
 *
 * @package AudioPlus_Theme
 */

/* Tùy chỉnh font */
body{font-family:  "Helvetica Neue",  sans-serif}

.nav > li > a, .mobile-sidebar-levels-2 .nav > li > ul > li > a {font-family:  "Open Sans", sans-serif;}

#menu-main {
	font-family:  "Open Sans", sans-serif!important;
}

h1,h2,h3,h4,h5,h6, .heading-font, .off-canvas-center .nav-sidebar.nav-vertical > li > a{font-family: "Open Sans", sans-serif;}

.alt-font{font-family: "Roboto", sans-serif;}


.section-footer {
  padding-top: 30px!important;
}
.section-footer, .footer-low {
	font-size: 90%;
	color: white!important;
}

.section-footer a, .footer-low a {
	color: white!important;
}

.section-footer .ux-menu-link__icon {
	color: #7a9c59;
}

.company-info {
	color: white!important;
	font-size: 90%;
}
.company-info a {
	color: white!important;
}

.company-info h4 {
	color: white!important;
	margin-bottom:0;
}

p.short-intro {
	margin-bottom: 2em;
	color: #b8b8b8;
}

p.company-info-inner {
	line-height: 2em;
}

.company-info a.direction {
	color: #f30!important;
}

.accepted-payments {
	text-align: center;
	color: white!important;
}

.accepted-payments h3 {
	color: white!important;
}

.accepted-payments .methods-outer img {
	border-radius: 4px;
}

.footer-low {
	color: rgba(255, 255, 255, 0.5);
}

.product-title a {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

h1.shop-page-title {
	text-transform: uppercase;
}

/* Chỉ hiển thị 2 dòng đối với tiêu đề quá dài trên nút Add To Cart động */
.sticky-add-to-cart__product .product-title-small {
  max-width: 250px;
  max-height: 29px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Đóng khung màu trắng đối với box sản phẩm trên trang danh sách */
.product-small.col .col-inner {
    background: #FFF;
    border-radius: 10px;
    box-shadow: 0px 0px 12px rgb(0 0 0 / 6%);
    /*padding: 15px 13px;*/
}

/* Đồng đều kích thước box sản phẩm */
.product-small.box {
	min-height: 324px;
}

@media only screen and (max-width: 600px) {
.product-small.box {
	min-height: 270px;
}

}

.product-small.box .box-image {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

.product-container .product-main {
	background-color: #FFF;
}

.woocommerce-Tabs-panel {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.woocommerce-Tabs-panel:last-child {
	margin-bottom: 0;
}

/* Giao diện phần mô tả danh mục */
.term-description {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 12px rgb(0 0 0 / 6%);
}

.woocommerce-pagination {
	margin-bottom: 20px;
}

/* Thư viện ảnh trong trang sản phẩm đơn */
.product-container .product-gallery .product-thumbnails a {
	border-radius: 5px;
	padding: 5px;
}


/* Shop sidebar */
.sidebar-inner .widget {
	background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0px 0px 12px rgb(0 0 0 / 6%);
}

#shop-sidebar .widget-title {
	font-family: "Open Sans", sans-serif;
}

#shop-sidebar .wpc-orderby-select,
.wpc-filters-range-wrapper input {
	height: 2em;
	border: 1px solid var(--primary-color);
	border-radius: 3px;
	margin-bottom: 0;
}

#shop-sidebar .is-divider {
	background-color: var(--fs-color-primary);
	display: none;
}
.wpc-filter-header>.widget-title {
	color: var(--fs-color-secondary);
	text-transform:uppercase;
	font-size: 15px;
}
.wpc-filters-main-wrap li.wpc-term-item {
	margin-bottom: 5px!important;
}

span.widget-title.shop-sidebar {
    background-color: var(--fs-color-secondary);
    display: block;
    line-height: 2.5em;
    margin: -15px -15px 15px -15px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    color: #fff;
    padding: 0 15px;
}

.wpc-posts-found[data-found=""] {
    display: none;
}

.wpc-empty-chips-container{
	display: none!important;
}

.wpc-filter-product_visibility li.wpc-term-item {
	height: 1.5em;
}

.wpc-filter-product_visibility .wpc-filters-ul-list {
	overflow-y: unset!important;
}

.home-slider-empty {
	max-width: 250px;
}

.home-slider-container {
	max-width: calc(100% - 250px);
  flex-basis: calc(100% - 250px);
}

@media only screen and (max-width: 850px) {
.home-slider-empty {
		display: none;
}

.home-slider-container {
	max-width: 100%;
	flex-basis: 100%;
}
}

/* Tùy biến header */

/* Button 2, nút gọi */
.header-button-2 span:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f095";
    font-weight: 900;
    margin-right: .5em;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
}

/* Button 1, nút google map */
.header-button-1 span:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f3c5";
    font-weight: 900;
    margin-right: .5em;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
}

/* Bo tròn search form */
.header-search-form .search-field {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

.submit-button {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}

@media only screen and (max-width: 850px) {
	._bc_cbb {
		bottom: 75px!important;
	}
}

.header-vertical-menu__title {
	font-family: 'Open Sans', sans-serif;
}

.boxed-column>.col-inner {
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 2px 2px 10px 0 rgba(0,0,0,.05);
  padding: 15px 20px;
}

.page .widget-title {
	font-family: 'Open Sans', sans-serif;
}

.page .rank-math-breadcrumb {
	background: #fff;
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px 0 rgba(0,0,0,.05);
    padding: 15px 20px 0 15px;
	font-family: 'Open Sans', sans-serif;
}

.page .rank-math-breadcrumb p {
	margin-bottom: 1em;
    text-transform: uppercase;
    font-size: 12.8px;
}

/* Trang tin tức */

span.widget-title {
    font-size: 1em;
    font-weight: 600;
    background-color: var(--fs-color-primary);
    color: #fff;
    padding: 10px 20px;
    display: block;
    margin: -15px -20px 1em -20px;
    font-family: 'Open Sans', sans-serif;
}

.widget .is-divider {
    margin-top: .66em;
    display: none;
}

.post-sidebar .widget {
	background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px 0 	rgba(0,0,0,.05);
    padding: 15px 20px;
}

#post-list .box {
	background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px 0 rgba(0,0,0,.05);
    padding: 15px 20px;
	min-height: 342px;
}

p.from_the_blog_excerpt {
    height: 4.8em;
		overflow:hidden;
		text-overflow: ellipsis;
}

#post-list h5.post-title {
	height: 3.9em;
	overflow:hidden;
}

.post .article-inner,
.woocommerce-page .col-inner>.woocommerce {
  background: #fff;
  padding: 15px 20px;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 10px 0 rgba(0,0,0,.05);
}

.boxed-section {
    padding: 0!important;
}

.boxed-section .section-content {
    background: #fff;
    padding: 15px 20px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px 0 rgba(0,0,0,.05);
}

/* Hide BaoKim buttons on sticky add to cart */

.sticky-add-to-cart-wrapper .bk-btn {
    display: none;
}
