/*
Theme Name: Chalames Child
Theme URI: https://chalames.vn/
Author: Jay Ng
Description: This is a child theme for Chalames
Version: 1.0
Author URI: https://chalames.vn/
Template: chalames
Text Domain: chalames-child
*/
/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.ubermenu .ubermenu-target-with-image>.ubermenu-target-text {text-align: left !important; margin-top: 10px !important; font-size: 12px !important;}
.ubermenu .ubermenu-item-23062 > .ubermenu-target > .ubermenu-badge {padding: 0px 3px 0px 3px !important;font-size: 9px !important;}
.ubermenu-item:hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  height: 20px;
  width: 100%;
  background: transparent;
  z-index: 9998;
}
.ubermenu-submenu {
  top: calc(100% + 20px) !important;}
  .ubermenu .ubermenu-submenu-type-stack>.ubermenu-item-normal>.ubermenu-target {padding-top: 7px !important; padding-bottom: 7px !important;}
  .ubermenu .ubermenu-item-level-0 > a {
  position: relative;
  padding-bottom: 10px;
  transition: all 0.5s ease;
}

.ubermenu .ubermenu-item-level-0 > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 0;
  height: 2px;
  background-color: #333;
  transition: width 0.5s ease;
}

.ubermenu .ubermenu-item-level-0 > a:hover::after {
  width: 100%;
}
.products-list.grid .product-wapper .products-thumb .product-button .product-quickview, .woocommerce div.product .woocommerce-tabs ul.tabs, .woocommerce .elementor-22779 .elementor-element.elementor-element-741b645 .woocommerce-Tabs-panel h2 {display: none !important;}
/* Ẩn chữ và chỉ giữ biểu tượng + cho sản phẩm upsell */
.products-list.grid .product-wapper.content-product1 .add_to_cart_button {
  font-family: Roboto, sans-serif !important;
  font-size: 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #dddddd; /* Màu nền nút */
  color: #000000; /* Màu dấu + */
  border-radius: 50%;
  border: none;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: -9999px; /* Ẩn chữ */
  margin: -20px 0px 0px 160px;
}
/* Thêm dấu + vào nút */
.products-list.grid .product-wapper.content-product1 .add_to_cart_button::after {
  content: "+";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-indent: 0;
  font-weight: bold;
}

/* Hiệu ứng hover */
.products-list.grid .product-wapper.content-product1 .add_to_cart_button:hover {
  background-color: #c8a165; /* Màu hover tuỳ chọn */
  color: #fff;
}
.content-product1 .price {visibility: visible !important; opacity: 1 !important;}
.eael-product-list-wrapper .eael-product-list-image-wrap:hover .eael-product-list-buttons-on-hover {display: none !important;}
.products-list.grid .product-wapper .products-content h3.product-title {font-size: 14px !important; font-family: Roboto, sans-serif !important;}
.eael-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 450px; /* Chiều cao tối đa trước khi scroll */
  overflow-y: auto;  /* Cho phép cuộn dọc */
  overflow-x: hidden;
  padding-right: 5px; /* Tránh ảnh bị che khi scrollbar bị ẩn */
  scrollbar-width: none; /* Firefox ẩn scrollbar */
  -ms-overflow-style: none; /* IE */
}

.eael-thumbnails::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.eael-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.7;
  transition: 0.1s ease;
  cursor: pointer;
}

.eael-thumb:hover,
.eael-thumb.active {
  opacity: 1;
  border: 1px solid #cdcdcd;
}
.jet-thumb-wrapper {
    position: relative;
}

.jet-thumb-wrapper img.jet-hover-thumb {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.1s ease-in-out;
}

.jet-woo-product-thumbnail:hover .jet-thumb-wrapper img.jet-hover-thumb {
    opacity: 1;
}

.elementor-toggle-item .elementor-active ul {padding:0px 0px 0px 15px;}
.elementor-toggle-item .elementor-active ol {padding:0px 0px 0px 15px;}
.elementor-22779 .elementor-element.elementor-element-b926a64 .elementor-tab-content {padding: 0px 0px 20px 10px;}
.eael-single-product-add-to-cart .cart .button {margin-bottom: 5px;}
.elementor-toggle .elementor-tab-title .elementor-toggle-icon .elementor-toggle-icon-closed, .elementor-toggle .elementor-tab-title.elementor-active .elementor-toggle-icon-opened {font-size: 10px;margin-top: 5px;}
.elementor-menu-cart__product-price {color: #565656 !important;font-size: 13px}
.elementor-menu-cart__subtotal {font-size: 16px !important;font-family: 'Roboto';color: #565656 !important;}
.hot {top: -100px;}
.cart-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;color: #000000;padding-bottom: 10px;
	padding: 15px 30px;
}

.cart-discount > div {margin: 0;}
.woocommerce-notices-wrapper, .jet-woo-builder-woocommerce-checkout {display: flex;justify-content: center;}
.woocommerce-info, .woocommerce-message, .woocommerce-error {text-transform: none !important;font-family: 'Roboto';font-size: 14px;background-color: #ffffff !important;max-width: 1200px;width: 100%;}
.woocommerce .elementor-jet-checkout-order-review #order_review .shop_table, .checkout .woocommerce-checkout-review-order .title-product-name, .checkout .woocommerce-checkout-review-order h2 {font-family: Roboto, sans-serif !important;font-size: 14px;}
.checkout .woocommerce-checkout-review-order .info-product .product-name {font-size: 15px !important;}
.checkout .woocommerce-shipping-methods label {color: #333333;}
.elementor-23822 .elementor-element.elementor-element-1abaa7b .woocommerce-privacy-policy-text, .elementor-23822 .elementor-element.elementor-element-1abaa7b .woocommerce-terms-and-conditions-checkbox-text {padding: 20px 0px 20px 0px;}
.checkout #place_order {line-height: 40px !important;}
.select2-results__option, .checkout .form-row .woocommerce-input-wrapper .input-text {font-family: 'Roboto'; font-size: 13px;}
.checkout .form-row .selection .select2-selection--single span {font-size: 13px; color: #333;font-family: 'Roboto';}
.gift-wrap-details-field { display:none; }
.gift-icon {font-size: 16px; color: red; margin-left: 4px;}
#chalames_gift_wrap_option .optional, #billing_email_field .optional, #order_comments_field .optional {display: none !important;}
.checkout .form-row label {font-family: 'Roboto'; font-size: 14px;}
.variation {display: flex; text-transform: none;font-size: 14px;}
.variation .variation-Musc {padding-right: 10px;}
.checkout .woocommerce-checkout-review-order .info-product .product-thumble {max-width: 65px !important;}
#chalames_gift_wrap_option input[type="checkbox"] {
    appearance: none;          /* Ẩn style mặc định của trình duyệt */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #888;
    border-radius: 50%;        /* Bo tròn */
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 5px;        /* padding bên phải cho checkbox */
    position: relative;
}
#chalames_gift_wrap_option input[type="checkbox"]:checked {background-color: #ff4d4d; /* Màu nền khi chọn */border-color: #ff4d4d;}
.chalames_gift_wrap_option .gift-wrap-details-field {padding: 0px 30px 0px 30px;}
.woocommerce-variation-add-to-cart {display: flex;justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;}
.flex-add-buy {display: flex; gap: 5px; align-items: center; width: 100%;}	
.yith-wcpb-bundle-form i {display: none !important;}
.elementor-widget-theme-post-content .elementor-widget-container ul {padding: 5px 0px 20px 20px;}
.elementor-widget-theme-post-content .wp-caption, .elementor-widget-theme-post-content .size-full {padding-top: 15px;}
.select_option_label .yith_wccl_value_wrapper {padding: 13px; border: 1px solid #e5e5e5; border-radius: 15px;color: #333;}
.checkout .woocommerce-checkout-review-order .product-total {text-align: right;}
/* Hiển thị ngay ảnh chính trong Product Grid */
.jet-woo-product-thumbnail__link img {opacity: 1 !important; visibility: visible !important; position: relative !important; z-index: 2 !important; transition: none !important; /* bỏ fade-in chậm */}
/* Ẩn ảnh hover mặc định, chỉ hiển thị khi rê chuột */
.jet-hover-thumb {position: absolute;top: 0;left: 0;opacity: 0;transition: opacity .3s ease; /* hiệu ứng mượt khi hover */}
/* Khi hover thì ảnh hover mới hiện dần lên */
.jet-woo-builder-product:hover .jet-hover-thumb {opacity: 1;}
.jet-woo-products .jet-woo-product-button .button, .woocommerce a.added_to_cart, .woocommerce table.shop_attributes {display: none !important;}
.yith-wcpb-product-bundled-items {border:none !important;box-shadow: none !important;}
.yith-wcpb-product-bundled-items .yith-wcpb-product-bundled-item {border-bottom: none !important;padding: 0 !important;}
.woocommerce .elementor-22779 .elementor-element.elementor-element-410ef68 .eael-single-product-add-to-cart form.cart table.variations label, .elementor-22779 .elementor-element.elementor-element-410ef68 .eael-variable-product-edit .eael-variable-product .variable-label {color: #444 !important;}
table td {border: none !important;}
.woocommerce div.product form.cart .yith-wcpb-product-bundled-item-data table.variations .reset_variations {margin: 0px 0px 0px 20px !important;}
.yith-wcpb-product-bundled-item-data h3, .single-product .yith-wcpb-product-bundled-item-data h3 {font-size: 14px !important;}
.yith-wcpb-product-bundled-items .yith-wcpb-product-bundled-item-image, .yith-wcpb-product-bundled-item-image img {width: 150px !important;}
.ubermenu .ubermenu-badge {padding: 0px 5px !important;font-size: 9px !important;}
.reset_variations, .single-product .product-type-variable .variations_form.cart .single_variation_wrap .woocommerce-variation p { display: none !important;}
.quantity {width: 100%;padding-bottom: 5px;}
.single-product .product-type-variable .variations_form.cart .single_variation_wrap .woocommerce-variation p {margin-bottom: 20px !important;margin-top: 10px; font-size: 13px;}
.jet-woo-products .jet-woo-product-badges {text-align: right !important; padding: 10px 10px 0px 0px; border-radius: 5px !important;z-index: 9;}
.woocommerce div.product .eael-single-product-add-to-cart form.cart {display: block !important;}
.yith-color-text {z-index:-9 !important;}
.woocommerce-tabs.description-style-accordion {margin: 0 !important;}
.woocommerce-tabs.description-style-accordion .content-woocommerce-tabs {font-size: 13px !important; color: #444 !important;line-height: 1.6;}
.woocommerce-tabs strong {font-weight: 600 !important;font-size: 14px !important;}
strong, label, b, th, dt, .elementor-field-group-field_6b201ac {font-weight: 600 !important;}
.eael-product-description-toggle {position: relative; max-height: 200px; overflow: hidden; transition: max-height 0.4s ease;}
.eael-product-description-toggle.expanded {max-height: 1000vh;}
.woocommerce-tabs #tab-description>ul {margin-left: -20px !important;margin-bottom: 15px;}
.awdr_discount_bar {font-size: 14px;}
.related, .cross_sell, .upsells {margin-top: 0 !important;padding: 0 !important;max-width: 400px !important; float: left;}
.upsells .content-product-list .products-list.grid .product-wapper {display: flex;width: 100% !important;}
.slick-track {width: 400px !important;}
.products-list.grid .product-wapper .products-thumb {width: 150px !important;}
.products-list.grid .product-wapper .products-content {margin-top: 70px;}
.woocommerce div.product .eael-single-product-add-to-cart form.cart .variations td, .woocommerce div.product .eael-single-product-add-to-cart form.cart .variations th, .woocommerce .dialog-widget-content .eael-single-product-add-to-cart form.cart .variations td, .woocommerce .dialog-widget-content .eael-single-product-add-to-cart form.cart .variations th form.cart .variations th {text-align: left;}
.woocommerce div.product .eael-single-product-add-to-cart form.cart .quantity .qty {border: 1px solid #c3c3c3 !important;border-radius: 30px !important;}
.variations th.label {width: 30% !important; text-align: left;}
.select_option {margin: 0 !important;}
.woocommerce div.product form.cart .variations select {color: #888; border: 1px solid #cdcdcd;}
.woocommerce ul.products li.product .button {margin: 0px 0px 0px 50px !important;}
.upsell-col.upsell-image {flex: 0 0 150px;height: 150px;display: flex;align-items: center;justify-content: center;}
.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th, .elementor-23822 .elementor-element.elementor-element-372e116 .elementor-jet-checkout-billing .form-row .woocommerce-input-wrapper > *:not(.woocommerce-password-strength):not(.woocommerce-password-hint):not(.show-password-input):not(.select2), .elementor-23822 .elementor-element.elementor-element-372e116 .select2-container .select2-selection--single {border-bottom: 1px solid #c9c9c9 !important;border: 0;}
.woocommerce table.shop_table tfoot td {text-align: right;}
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {border-color: #c9c9c9 !important;}
/* Bọc ảnh + tên */
.clm-product-wrap {display: flex; align-items: center; gap: 10px;}
/* Thumbnail */
.clm-product-wrap .clm-thumb img {width: 80px; height: 80px; object-fit: cover; border-radius: 4px;}
/* Không mở rộng cột */
.woocommerce-checkout-review-order-table .product-name {width: 60%;}
.woocommerce-checkout-review-order-table .product-total {width: 40%;text-align: right;}
.woocommerce div.product.elementor .woocommerce-tabs .panel {padding: 0 !important;}
.woocommerce-order {
    max-width: 900px;
    margin: 0 auto;
    font-family: "Roboto", sans-serif;
    color: #333;
    line-height: 1.5;
}
.woocommerce-notice--success.woocommerce-thankyou-order-received {
font-size: 26px;
    font-weight: 600;
    text-align: center;
    margin: 60px 0px 40px 0px;
    color: #000;
}
.woocommerce ul.order_details {padding: 0;}
.woocommerce-order-details .woocommerce-order-details__title, .woocommerce-customer-details .woocommerce-column__title {font-size:20px;font-weight: 600;}
.woocommerce .woocommerce-customer-details address {font-size: 14px;line-height: 1.6;}
.woocommerce .col2-set, .woocommerce-page .col2-set, .woocommerce .woocommerce-customer-details {padding-bottom: 50px;}
.woocommerce table.shop_table {border: 1px solid #c9c9c9;margin: 10px 0px 10px 0px;}
table caption+thead tr:first-child td, table caption+thead tr:first-child th, table colgroup+thead tr:first-child td, table colgroup+thead tr:first-child th, table thead:first-child tr:first-child td, table thead:first-child tr:first-child th {border: none; border-bottom: 1px solid #c9c9c9;}
.woocommerce-table__product-total, .woocommerce-table__product-table {text-align:right;}
.woocommerce-variation-price .woocommerce-Price-amount amount {}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {color: #333;font-size: 15px;}
.woocommerce-variation .woocommerce-variation-price {padding-bottom: 20px;}
.woocommerce div.product form.cart table {background-color: #fff !important;}
.ubermenu .ubermenu-submenu.ubermenu-submenu-id-22848 {max-width: 100vw;}

@media (max-width: 1440px) {
.ubermenu-column-id-22848-col-1 {width: 40% !important;}
.ubermenu-column-id-22848-col-0 {width: 60% !important;}
}

@media (min-width: 769px) {
	.menu-img {display:none;}
}
/* Mobile */

@media (max-width: 768px) {
	.eael-advanced-search-widget .eael-advanced-search-result {max-height: 70vh !important;}
.upsell-col.upsell-image {flex: 0 0 100px;height: 120px;display: flex;align-items: center;justify-content: center;}
.upsell-col.upsell-info {flex: 1 1 auto; min-width: 120px; display: flex; flex-direction: column; justify-content: center;}
.woocommerce ul.products li.product .button {margin: 0 0 0 20px !important;}
.bwp_product_list.scroll-2 .product-content .item-product {width: 270px !important;}
body.post-type-archive-product .attribute_pa_kich-thuoc, body.archive.woocommerce .attribute_pa_kich-thuoc {display: none !important;}
.my-section {display: flex;flex-direction: column;}
.my-section .elementor-column:nth-child(1) { order: 2; /* Menu xuống dưới */}
.my-section .elementor-column:nth-child(2) { order: 1; /* Sản phẩm lên trên */}
.woocommerce-variation-add-to-cart {flex-direction: column; align-items: flex-start; /* ép quantity bên trái */}
.flex-add-buy { width: 100%; flex-direction: row; justify-content: flex-start; /* nút canh trái */}
.flex-add-buy .single_add_to_cart_button,
.flex-add-buy .buy_now_button {width: auto;}

/* Nút Mua ngay */
.buy_now_button {background-color: #f39c12;border: none;color: #fff;padding: 0 15px;cursor: pointer;height: 40px;}
.single_add_to_cart_button {height: 40px;}
.ubermenu-responsive-toggle {margin-top: -15px;}
.menu-img {padding-bottom: 25px;}
.ubermenu-responsive-default.ubermenu.ubermenu-mobile-modal .ubermenu-mobile-footer .ubermenu-mobile-close-button {background: #7e5b3d;color: #fff;;}
.ubermenu-skin-grey-white.ubermenu-responsive-toggle {font-size: 15px !important;}
.woocommerce div.product form.cart .yith-wcpb-product-bundled-item-data__variations_form .variations select.yith-wcpb-select-for-variables {width: 100% !important;}
.woocommerce div.product form.cart .yith-wcpb-product-bundled-item-data table.variations td {width: 0px !important;}
.woocommerce div.product form.cart .yith-wcpb-product-bundled-item-data__variations_form .variations select.yith-wcpb-select-for-variables {width: 100% !important;}
.yith-color-text {margin: 5px 0px 0px -80px !important;}
.woocommerce-variation-add-to-cart-enabled .quantity {width: 100%;}
.eael-woo-cart .eael-woo-cart-wrapper .eael-cart-coupon-and-collaterals .cart-collaterals .cart_totals table, .eael-woo-cart .eael-woo-cart-wrapper .eael-cart-clear-btn .cart-collaterals .cart_totals table {display: inline-block;}
.elementor-23914 .elementor-element.elementor-element-63a0ebd .eael-woo-cart-wrapper .eael-cart-coupon-and-collaterals .cart-collaterals .cart_totals table tr:not(.shipping) td {width: 230px;}
.eael-woo-cart .eael-woo-cart-wrapper .eael-cart-coupon-and-collaterals .cart-collaterals .cart_totals table tr th {width: 150px;}
}