/* Add new product - category
div.dokan-form-group.dokan-new-cat-ui-title{
	display:none
}
span.dokan-add-new-cat-box.cat_box_for_edit_product{
	display:none
}*/

form.dokan-product-edit-form div.dokan-form-group.dokan-product-type-container,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

form.dokan-product-edit-form div.content-half-part.sale-price,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

form.dokan-product-edit-form div.dokan-product-short-description,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

form.dokan-product-edit-form div.dokan-product-inventory,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

form.dokan-product-edit-form div.dokan-product-shipping-tax,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

form.dokan-product-edit-form div.dokan-linked-product-options,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

form.dokan-product-edit-form div.dokan-attribute-variation-options,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

form.dokan-product-edit-form div.dokan-wholesale-options,
form.dokan-product-edit-form div.dokan-other-options {display: none !important;}

/* Hide the widget "Sales this Month" */
div.dokan-panel.dokan-panel-default.dokan-profile-completeness{
	display:none
}

.dashboard-widget.big-counter{
	display:none
}

.dashboard-widget.sells-graph{
	display:none
}

.dashboard-widget.orders{
	display:none
}

.dashboard-widget.reviews{
	display:none
}

/* Hide the menu "Support" */
li.woocommerce-MyAccount-navigation-link--edit-account{
display:none
}

li.support{
	display:none
}

li.followers{
	display:none
}

li.settings{
	display:none
}

/*li.subscription{
	display:none
}*/


/* Hide my account menu */

li.woocommerce-MyAccount-navigation-link--dashboard{
display:none
}

li.woocommerce-MyAccount-navigation-link--following{
	display:none
}

li.woocommerce-MyAccount-navigation-link--support-tickets{
	display:none
}

li.woocommerce-MyAccount-navigation-link--customer-logout{
	display:none
}

/*Hide vendor details*/
.profile-info ul.dokan-store-info li.dokan-store-address{
 display:none;
}

/*.profile-info ul.dokan-store-info li.dokan-store-phone{
 display:none;
}*/

.profile-info ul.dokan-store-info li.dokan-store-email{
 display:none;
}

/*.dokan-store-phone {
    display: none;
}*/

.store-data .store-phone{
 display:none;
}

/*Vendor align to center*/
span.details{
	text-align:auto
}
		
/*Single product page*/
button.dokan-store-support-btn-product.dokan-store-support-btn.button.alt.user_logged{
	display:none
}

div.wp-block-add-to-cart-form.wc-block-add-to-cart-form{
	display:none
		}

/*Hide basket button*/
div.wp-block-button.wc-block-components-product-button {
	display:none
}

/*Subscription*/
span.woocommerce-Price-amount.amount{
	font-size:16px
}

div.pack_price{
	left:0%
}

div.dokan-subscription-content{
	flex-wrap:nowrap
}

/*Single product shipping tab*/
li#tab-title-shipping.shipping_tab{
	display:none
}

/*Hide dokan edit function*/
span.edit{
	display:none
}

span.item-inline-edit{
	display:none
}

/*Hide edit product page
div.product-edit-new-container.product-edit-container{
	display:none
}*/

/*Dashboard hide add new product button*/
span.pull-right{
	display:none
}

span.dokan-add-product-link{
	display:none
}

input#publish.dokan-btn.dokan-btn-theme.dokan-btn-lg.dokan-right{
	display:none
}

/*Hide columns from dokan product dashboard*/
th.product-advertisement-th,td.product-advertisement-td{
	display:none
}

/*Hide product type*/
select#product_type.dokan-form-control.valid{
	display:none
}

/*Fix display image size in shortcode*/
.woocommerce ul.products li.product a img {
	height:200px
}

/*Hide product button in shortcode*/
.woocommerce ul.products li.product .button {
	display:none!important;
}

/*Set product price holders with format
input#_regular_price.textfield.wpuf__regular_price_1750{
	
}

/*Hide single product page - product summary*/
div.wp-block-post-excerpt{
	display:none
}

/*Adjust subscription layout*/
.dokan-subscription-content .pack_content_wrapper .product_pack_item .pack_price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
    line-height: 1.3;
    left: auto;
}

/*Hide single product page - all description*/
li.wpuf-field-data.wpuf-field-data-numeric_text_field{
	display:none
}

li.wpuf-field-data.wpuf-field-data-dropdown_field{
	display:none
}

li.wpuf-field-data.wpuf-field-data-text_field{
	display:none
}

li.wpuf-field-data.wpuf-field-data-checkbox_field{
	display:none
}

/*Hide Single Product Page - Image Gallery*/
ul.wpuf_customs{
	display:none
}

span.details{
	display:none
}

/*Hire become vendor box*/
ul.dokan-account-migration-lists{
	display:none
}

/*Products Dashboard*/
span.duplicate{
	display:none
}

/*Disable*/
li#tab-title-discussions.discussions_tab{
	display:none
}

/*Make title max for 3 row*/
.woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.4em;        /* Adjust this if needed */
  max-height: calc(1.4em * 3); /* Exactly 3 lines */
  margin: 0 !important;
  padding: 0 !important;
}

/*Standard the title in main page*/
.woocommerce-loop-product__title {
  font-size: 18px !important;    /* Adjust size as needed */
  line-height: 1.2em;    
	/* Helps readability */
  font-weight: 500;      
	/* Optional: make it a bit lighter */
}

/*Hide mainpage add to bastket button*/
a.button.wp-element-button.product_type_simple.add_to_cart_button.ajax_add_to_cart{
	display:none
}

/*Dislay image standardize*/
.psfw-image-hover-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px; /* Optional: makes image corners slightly rounded */
}

.psfw-slider-wrapper {
  margin-bottom: 20px !important; /* reduce spacing between sliders */
}

/*Mobile Friendly*/
@media only screen and (max-width: 768px) {
  /* 👤 隐藏用户图标 */
  .wc-block-customer-account__account-icon {
    display: none !important;
  }

  /* 🎁 隐藏 Free Ad 按钮 */
  .button-link-wrap.tpgb-trans-linear {
    display: none !important;
  }

  /* 🧭 隐藏 WordPress 原生菜单 和 菜单按钮*/ 
  .wp-block-navigation,
  .wp-block-navigation__responsive-container-open {
    display: none !important;
  }
}

/*Hide specific menu items in mobile view*/
@media only screen and (max-width: 768px) {
  .dokan-dashboard-menu li:nth-child(4), /* Followers */
  .dokan-dashboard-menu li:nth-child(5), /* Subscription */
  .dokan-dashboard-menu li:nth-child(7), /* Support */
  .dokan-dashboard-menu li:nth-child(8)  /* Settings */ {
    display: none !important;
  }
}

/*Make mainpage new listing layout show nicely*/
/* 1. Uniform Image Size */
li.product img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}

/* 2. Remove floating price badge (orange box) */
li.product .berocket_better_labels {
  display: none !important;
}

/* 3. Adjust title styling */
li.product .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 4px;
  line-height: 1.4;
}

/* 4. Tidy price display under title */
li.product .price {
  display: block;
  color: #333;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

/*Display for sale / for rent / new project / auction in mainpage*/ /* === Base Label Style (only apply when NOT on single page) === */
body:not(.single-product) li.product::before {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 10px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  font-weight: 600;
}

/* === Individual Tag Labels (still apply globally) === */
li.product.product_tag-for-rent::before {
  content: "For Rent";
  background-color: #2196F3;
}

li.product.product_tag-for-sale::before {
  content: "For Sale";
  background-color: #4CAF50;
}

li.product.product_tag-new-project::before {
  content: "New Project";
  background-color: #F3407A;
}

li.product.product_tag-auction::before {
  content: "Auction";
  background-color: #FFA500;
}

/*Make mainpage product card more close*/
ul.products li.product {
  margin-bottom: -20px !important;
}

/*Adjust single product page image slider view - mobile same as desktop*/
@media (min-width: 1024px) {
    /* Reduce space below main product image */
    .woocommerce-product-gallery__image,
    .wc-block-product-gallery__image {
        margin-bottom: 10px !important;
    }

    /* Reduce space between gallery and thumbnails */
    .flex-control-thumbs,
    .wc-block-product-gallery-thumbnails {
        margin-top: 10px !important;
    }
}

/**/
@media (min-width: 1024px) {
  /* Remove extra space between main image and thumbnails */
  .wc-block-product-gallery,
  .wp-block-woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; /* Adjust gap between main image and thumbnails */
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Make sure main image has no bottom margin */
  .wc-block-product-gallery-large-image,
  .wc-block-product-gallery__image {
    margin-bottom: 0 !important;
  }

  /* Force thumbnails row to stay tight */
  .wc-block-product-gallery-thumbnails {
    margin-top: 5px !important; /* Reduce vertical space */
    gap: 5px !important; /* Reduce space between thumbnails */
  }
}

/*normalize the main image container height*/
/* Force gallery container fixed height */
.wc-block-product-gallery-large-image {
  height: 500px !important;   /* increase height for bigger images */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Make image always fill container */
.wc-block-woocommerce-product-gallery-large-image__image {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;  /* fills container, may crop */
}

/*Hide affiliate ink in my acc page*/
a[href*="affiliates"] {
    display: none !important;
}

/* Hide the entire filters form in Dokan My Products page */
#filter-by-date { display: none !important; }
#product_cat { display: none !important; }
#filter-by-type { display: none !important; }
select[name="filter_by_other"] { display: none !important; }
.dokan-product-date-filter button,
.dokan-product-date-filter a.dokan-btn {
    display: none !important;
}

/*Customize brochure button*/
.brochure-button {
    display: block;                /* full width */
    width: 100%;                   /* take full container width */
    text-align: center;            /* center text */
    background-color: #0073e6;     /* blue color */
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 8px;               /* small spacing below WhatsApp */
}

.brochure-button:hover {
    background-color: #005bb5;     /* darker blue on hover */
    color: #fff !important;
}

/*Styling video player*/
.product-video video {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/*Tab in product page*/
/* Desktop = grid */
.unit-plan-gallery .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.unit-plan-gallery .swiper-slide {
    flex: 1 0 45%;
    max-width: 45%;
}

/* Mobile = slider */
@media (max-width: 991px) {
    .unit-plan-gallery .swiper-wrapper {
        display: block;
    }
    .unit-plan-gallery .swiper-slide {
        flex: none;
        max-width: 100%;
    }
}

/* Style for Refer Buyer button */
.refer-buyer-btn {
    display: block;
    width: 100%;             /* full width */
    text-align: center;
    background: #f2555a !important;  /* flamingo color*/
    color: #fff !important;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.refer-buyer-btn:hover {
    background: #8b0000 !important;  /* darker green on hover */
    color: #fff !important;
}

/* Center WhatsApp button on single product page */
.single-product a[href*="wa.me"] {
    display: block !important;
    margin: 10px auto !important;  /* center horizontally */
    text-align: center !important;
    width: 250px;   /* match width of Brochure / Refer Buyer */
    max-width: 100%;
}

/* Whatsapp button for Popup overlay */
.wa-popup label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.wa-popup input[type="text"],
.wa-popup input[type="email"],
.wa-popup input[type="tel"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box; /* ✅ Keeps fields inside popup */
}

/* ================================
   Sticky Header Navigation ONLY
   ================================ */

/* Common header wrapper for block themes */
.wp-site-header,
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    width: 100%;
    border-bottom: 1px solid #eee;
}

/* Style only the header navigation */
.wp-site-header .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation {
    background: #fff;
}

.wp-site-header .wp-block-navigation__container,
header.wp-block-template-part .wp-block-navigation__container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 10px 20px;
}

/* Links */
.wp-site-header .wp-block-navigation-item a,
header.wp-block-template-part .wp-block-navigation-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.wp-site-header .wp-block-navigation-item a:hover,
header.wp-block-template-part .wp-block-navigation-item a:hover {
    color: #ff6600;
    background: #f9f9f9;
    border-radius: 4px;
}

/*Member zone button*/
.button-container {
  text-align: center;
  font-family: "Poppins", sans-serif;
  padding: 20px;
}

.section-title {
  color: #d9644a;
  font-weight: 700;
  text-align: left;
  margin-bottom: 16px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: white;
  border-radius: 8px;
  height: 60px;
  width: 80%;              /* ⬅️ 调整这里，从 90% 改为 80% */
  margin: 10px auto;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* 颜色定义 */
.btn.blue { background-color: #007bff; }
.btn.red { background-color: #f35d5d; }
.btn.green { background-color: #3cb65e; }

/* hover 动效 */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式优化 */
@media (max-width: 480px) {
  .btn {
    width: 90%;            /* 手机屏幕下稍微放宽 */
    height: 55px;
    font-size: 15px;
  }
}

/* Make the typing text in Ajax Search Pro input box larger and clearer */
div.ajaxsearchpro input.orig,
div.ajaxsearchpro input.orig:focus {
  font-size: 18px !important; /* adjust size here */
  line-height: 1.5 !important;
  color: #333 !important;
}

/*ACF 链接按钮*/
.google-drive-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.google-drive-btn.active {
  background-color: #4285F4;
  color: white;
  cursor: pointer;
}

.google-drive-btn.active:hover {
  background-color: #3367D6;
}

.google-drive-btn.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
}

/* Force hide Dokan dashboard menu & sidebar on mobile */
@media (max-width: 767px) {
  .dokan-dashboard-sidebar,
  .dokan-dashboard-menu,
  #dokan-dashboard-menu,
  .dokan-dash-sidebar,
  .dokan-dash-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/*hide that Dokan menu “Announcements”*/
#dokan-navigation a[href*="dashboard/new/#announcement"],
#dokan-navigation li.dokan-announcement {
    display: none !important;
}

/* ✅ Unify image + content into one card */
.wp-block-post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* make image full width inside the card */
.wp-block-post-featured-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* spacing inside card content */
.wp-block-post-title,
.wp-block-post-date,
.wp-block-post-excerpt {
  padding: 10px 15px;
  margin: 0;
}

/* Limit product titles to 3 lines only — exclude image links */
ul.products li.product .woocommerce-loop-product__title a,
ul.products li.product h2.woocommerce-loop-product__title,
.search-results .wp-block-post-title a,
.search-results .entry-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.4em;
  max-height: calc(1.4em * 3);
}

/* Make the whole product/search card clickable */
ul.products li.product,
.search-results .wp-block-post {
  position: relative;
}

/*Hide location_master from admin UI (optional)*/
.acf-field[data-name="location_master"] {
    display: none !important;
}

/* 🔒 隐藏 Ajax Search Pro 的 No Results 提示 */
.asp_nores,
.asp_nores_header,
.asp_nores_legend {
  display: none !important;
  visibility: hidden !important;
}

/*Hide page title and space*/
.page-id-2068 h1.wp-block-post-title {
    display: none !important;
}

.page-id-2068 .wp-site-blocks {
    padding-top: 0 !important;
}

.page-id-2068 .wp-block-post-content {
    margin-top: 0 !important;
}

/* 有订阅的用户（Premium/Basic 等）完全隐藏 Ad Slot 卡片 */
.senang-has-subscription .dokan-dash-left .dokan-info {
    display:none !important;
}

/* 只有没有订阅配套的用户才看到 Ad Slot 卡片 */
.senang-no-subscription .dokan-dash-left .dokan-info {
    display:block !important;
}

/*Stripe Payment 4*/
/* === SENANG Top-Up Box === */
.senang-topup-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin: 20px 0;
    font-family: "Poppins", sans-serif;
}

.senang-topup-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
}

.senang-topup-desc {
    color: #444;
    font-size: 14px;
    margin-bottom: 20px;
}

.senang-topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.senang-topup-btn {
    background: #F2555A;
    color: #fff !important;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.senang-topup-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(242,85,90,0.3);
}

.senang-topup-btn .price {
    font-size: 18px;
    font-weight: 700;
}

.senang-topup-btn .slots {
    font-size: 13px;
    opacity: 0.9;
}

/*Price 会重新出现（100% confirm for long term*/
/* Show Price column ONLY in Dokan My Products */
#dokan-product-list-table td.column-price,
#dokan-product-list-table td.price,
#dokan-product-list-table .price,
#dokan-product-list-table .woocommerce-Price-amount,
#dokan-product-list-table .amount {
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000 !important;
}

/*⭐【最终隐藏 SKU / Stock / Earning / Type（永不对调）】*/
#dokan-product-list-table th:nth-child(6),
#dokan-product-list-table td[data-title="SKU"] {
    display: none !important;
}

/* Hide Stock column */
#dokan-product-list-table th:nth-child(7),
#dokan-product-list-table td[data-title="Stock"] {
    display: none !important;
}

/* Hide Earning column */
#dokan-product-list-table th:nth-child(9),
#dokan-product-list-table td[data-title="Earning"] {
    display: none !important;
}

/* Hide Type column */
#dokan-product-list-table th:nth-child(10),
#dokan-product-list-table td[data-title="Type"] {
    display: none !important;
}

/*⭐【确保 Featured & Status 完全不再对调】（强制固定）*/
/* Force Featured column content stay under Featured */
#dokan-product-list-table td.featured-ad-col {
    order: 0 !important;
}

/* Force Status column content stay under Status */
#dokan-product-list-table td.post-status {
    order: 0 !important;
}

/*⛔ 隐藏 Status 栏标题（TH) & Status 内容（绿色 Online）*/
#dokan-product-list-table th:nth-child(5) {
    display: none !important;
}

#dokan-product-list-table td.post-status {
    display: none !important;
}

/*⭐【最终居中 Name 标题 + Name 内容】*/
#dokan-product-list-table th:nth-child(3),
#dokan-product-list-table td:nth-child(3) {
    text-align: center !important;
}
/*⭐【最终居中 Views 标题 + Views 内容】*/
#dokan-product-list-table td[data-title="Views"] {
    text-align: center !important;
}

/*基于Code ID 10727*/
/* 让整个 grid 变成单列 */
.senang-topup-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}
/* 按钮样式改成长条形 */
.senang-topup-btn {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    background: #ff5a5f !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
/* 左边价钱 + 右边 slots */
.senang-topup-btn .price {
    font-size: 18px !important;
    font-weight: 700 !important;
}
.senang-topup-btn .slots {
    font-size: 15px !important;
    opacity: 0.9 !important;
}
/* Hover 效果 */
.senang-topup-btn:hover {
    background: #e14e52 !important;
}

/*隐藏PHP CODE ID xxx 重叠的remaining slot讯息*/
/* Hide featured slot box inside product listing only */
.dokan-product-listing-area .featured-slot-box {
    display: none !important;
}

/*【步骤5】*/
/* ✅ Only hide subscription pack block on registration page */
body.page-id-2068 label[for="dokan-subscription-pack"],
body.page-id-2068 #dokan-subscription-pack,
/*body.page-id-2068 .dps-pack-wrapper {
    display: none !important;
}*/

/* ✅ Force enable Buy Now buttons in dashboard subscription */
.dps-pack-wrappper a.button,
.dps-pack-wrappper a.btn,
.dps-pack-wrappper .dokan-subscription-pack-buy,
.subscription-pack a,
.subscription-pack button {
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Hide WooCommerce Blocks quantity selector on single product page */
.single-product .wc-block-components-quantity-selector.quantity {
    display: none !important;
}

/* 未登录用户隐藏 Snippet 1 的 Reveal WhatsApp 按钮 */
body:not(.logged-in) .senang-wa-reveal-btn {
    display: none !important;
}

/* 同时隐藏按钮下面的提示文字 */
body:not(.logged-in) .senang-wa-reveal-btn + div {
    display: none !important;
}

/* ACF gallery under main image */
.senang-acf-gallery {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.senang-acf-gallery img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/*Hide Dasdboard pay-per-ad bar*/
.dokan-dashboard .dokan-alert-info:first-of-type {
display: none;
}

/*Hide my account menu*/
.woocommerce-MyAccount-navigation-link--payment-methods {
display: none;
}

.woocommerce-MyAccount-navigation-link--coupon-affiliate {
display:none;
}

/*主页显示为单栏*/
/* ==========================================
   Senang Homepage Mobile Listing Grid Fix
   Only homepage, not search result page
========================================== */

@media (max-width: 768px) {

  /* 只针对首页 */
  body.home ul.products,
  body.front-page ul.products,
  body.home .woocommerce ul.products,
  body.front-page .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    list-style: none !important;
  }

  /* 完全重置 WooCommerce / Theme 对 li.product 的旧排版 */
  body.home ul.products > li.product,
  body.front-page ul.products > li.product,
  body.home .woocommerce ul.products > li.product,
  body.front-page .woocommerce ul.products > li.product {
    display: block !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 10px 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;

    background: #fff !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  }

  /* 取消 theme 常见 nth-child clear / margin 干扰 */
  body.home ul.products > li.product:nth-child(n),
  body.front-page ul.products > li.product:nth-child(n),
  body.home .woocommerce ul.products > li.product:nth-child(n),
  body.front-page .woocommerce ul.products > li.product:nth-child(n) {
    clear: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* 有些主题会插入 before/after 影响 grid */
  body.home ul.products::before,
  body.home ul.products::after,
  body.front-page ul.products::before,
  body.front-page ul.products::after,
  body.home .woocommerce ul.products::before,
  body.home .woocommerce ul.products::after,
  body.front-page .woocommerce ul.products::before,
  body.front-page .woocommerce ul.products::after {
    content: none !important;
    display: none !important;
  }

  /* 图片 */
  body.home ul.products > li.product img,
  body.front-page ul.products > li.product img,
  body.home .woocommerce ul.products > li.product img,
  body.front-page .woocommerce ul.products > li.product img {
    width: 100% !important;
    height: 170px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* Badge */
  body.home ul.products > li.product .onsale,
  body.front-page ul.products > li.product .onsale,
  body.home .woocommerce ul.products > li.product .onsale,
  body.front-page .woocommerce ul.products > li.product .onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1 !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    z-index: 2 !important;
  }

  /* 标题 */
  body.home ul.products > li.product .woocommerce-loop-product__title,
  body.front-page ul.products > li.product .woocommerce-loop-product__title,
  body.home .woocommerce ul.products > li.product .woocommerce-loop-product__title,
  body.front-page .woocommerce ul.products > li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    padding: 10px 10px 0 !important;
    margin: 0 !important;
    overflow: hidden !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    min-height: 64px !important;
  }

  /* 价格 */
  body.home ul.products > li.product .price,
  body.front-page ul.products > li.product .price,
  body.home .woocommerce ul.products > li.product .price,
  body.front-page .woocommerce ul.products > li.product .price {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    padding: 6px 10px 10px !important;
    margin: 0 !important;
  }

  /* 链接不要下划线 */
  body.home ul.products > li.product a,
  body.front-page ul.products > li.product a,
  body.home .woocommerce ul.products > li.product a,
  body.front-page .woocommerce ul.products > li.product a {
    text-decoration: none !important;
  }
}

/*在new property project给项目卡加样式*/
/*change to line 1195-1218
 .senang-project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}*/
.senang-project-grid {
  display: flex !important;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.senang-project-grid::-webkit-scrollbar {
  height: 8px;
}

.senang-project-grid::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 20px;
}

.senang-project-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding-bottom: 15px;
}

.senang-project-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.senang-launch-status {
  display: inline-block;
  margin: 15px 15px 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #f5f5f5;
  border-radius: 20px;
}

.senang-project-title {
  font-size: 18px;
  margin: 0 15px 8px;
}

.senang-project-title a {
  text-decoration: none;
  color: #111;
}

.senang-project-state,
.senang-project-price {
  margin: 0 15px 8px;
  font-size: 14px;
  color: #666;
}

.senang-project-link {
  margin: 10px 15px 0;
}

.senang-project-link a {
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .senang-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .senang-project-grid {
    grid-template-columns: 1fr;
  }
}

/*在new property project给search result 变grid*/
/* ===== Ajax Search Pro search results - unified with Senang project cards ===== */

/* 外层结果区 */
div[id*="ajaxsearchprores"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 24px !important;
}

/* 结果列表容器 */
div[id*="ajaxsearchprores"] .results {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 每一个结果卡 */
div[id*="ajaxsearchprores"] .results .item {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

div[id*="ajaxsearchprores"] .results .item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
  transform: translateY(-2px) !important;
}

/* 清掉原本横向 layout */
div[id*="ajaxsearchprores"] .results .item * {
  float: none !important;
}

div[id*="ajaxsearchprores"] .results .item .asp_content_container,
div[id*="ajaxsearchprores"] .results .item .asp_item_content,
div[id*="ajaxsearchprores"] .results .item .asp_content {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 图片 */
div[id*="ajaxsearchprores"] .results .item .asp_image,
div[id*="ajaxsearchprores"] .results .item .asp_res_img {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

div[id*="ajaxsearchprores"] .results .item .asp_image img,
div[id*="ajaxsearchprores"] .results .item .asp_res_img img {
  width: 100% !important;
aspect-ratio: 1 / 1 !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

/* 内容区 */
div[id*="ajaxsearchprores"] .results .item .asp_content,
div[id*="ajaxsearchprores"] .results .item .asp_item_content {
  padding: 15px !important;
}

/* 标题 */
div[id*="ajaxsearchprores"] .results .item h3,
div[id*="ajaxsearchprores"] .results .item .asp_res_url {
  display: block !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  margin: 0 0 8px 0 !important;
  color: #111 !important;
  text-decoration: none !important;
}

/* 标题链接 hover */
div[id*="ajaxsearchprores"] .results .item h3 a,
div[id*="ajaxsearchprores"] .results .item .asp_res_url a {
  color: #111 !important;
  text-decoration: none !important;
}

div[id*="ajaxsearchprores"] .results .item h3 a:hover,
div[id*="ajaxsearchprores"] .results .item .asp_res_url a:hover {
  color: #111 !important;
  text-decoration: none !important;
}

/* 描述 */
div[id*="ajaxsearchprores"] .results .item .asp_res_text,
div[id*="ajaxsearchprores"] .results .item .excerpt {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #666 !important;
  margin: 0 !important;
}

/* 隐藏过多杂乱信息，可按需要保留 */
div[id*="ajaxsearchprores"] .results .item .asp_date {
  display: none !important;
}

/* 平板 */
@media (max-width: 1024px) {
  div[id*="ajaxsearchprores"] .results {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 手机 */
@media (max-width: 640px) {
  div[id*="ajaxsearchprores"] .results {
    grid-template-columns: 1fr !important;
  }
}

/*New Property Projects 的search result 美化*/
/* 搜索区 */
.senang-search-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 24px;
  margin: 40px 0 30px;
}

.senang-search-heading {
  font-size: 28px;
  margin-bottom: 8px;
}

.senang-search-subheading {
  color: #666;
  margin-bottom: 20px;
}

.senang-search-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.senang-search-row-top input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 15px;
}

.senang-search-row-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: end;
}

.senang-search-row-bottom select,
.senang-search-row-bottom button {
  height: 48px;
  border-radius: 10px;
  font-size: 15px;
}

.senang-search-row-bottom select {
  border: 1px solid #ddd;
  padding: 0 12px;
  background: #fff;
}

.senang-search-row-bottom button {
  border: 0;
  background: #d94f45;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.senang-search-row-bottom button:hover {
  opacity: 0.92;
}

/* Search results */
.senang-search-results-section {
  margin-top: 40px;
}

.senang-search-results-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.senang-search-summary {
  color: #666;
  margin-bottom: 20px;
}

.senang-no-results {
  color: #666;
  font-size: 15px;
  margin-top: 10px;
}

/* 你原本的项目卡也顺便统一 */
.senang-project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.senang-project-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding-bottom: 10px;
}

.senang-project-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.senang-launch-status {
  display: inline-block;
  margin: 12px 12px 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  background: #f5f5f5;
  border-radius: 20px;
}

.senang-project-title {
  font-size: 15px;
  margin: 0 12px 6px;
  line-height: 1.4;
	
	display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
  min-height: calc(1.4em * 3);
}

.senang-project-title a {
  text-decoration: none;
  color: #111;
}

/*.senang-project-state,
.senang-project-price {
  margin: 0 12px 6px;
  font-size: 13px;
  color: #666;
}*/
.senang-project-state {
  margin: 0 12px 6px;
  font-size: 13px;
  color: #666;
}

.senang-project-price {
  margin: 0 12px 6px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-align: left;
}

.senang-project-link {
  margin: 10px 15px 0;
}

.senang-project-link a {
  text-decoration: none;
  font-weight: 600;
}

/* 平板 */
@media (max-width: 1024px) {
  .senang-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .senang-search-row-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 */
@media (max-width: 640px) {
  .senang-project-grid {
    grid-template-columns: 1fr;
  }

  .senang-search-row-bottom {
    grid-template-columns: 1fr;
  }

  .senang-search-box {
    padding: 16px;
  }
}

/* Search box container */
.senang-search-box{
    max-width:1100px;
    margin:40px auto;
}

/* 第一排 search bar */
.senang-search-row-top{
    display:flex;
    justify-content:center;
}

/* Search input */
.senang-search-row-top input[type="text"]{
    width:100%;
    max-width:680px;
    height:52px;
    margin:0 auto 10px auto;
    padding:0 20px;
}

/* 第二排 filters */
.senang-search-row-bottom{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

/* Mobile optimize for Search Projects */
@media (max-width: 768px) {

  .senang-search-box{
    margin: 24px 16px !important;
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  .senang-search-heading{
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }

  .senang-search-subheading{
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
  }

  .senang-search-row-top{
    display: block !important;
  }

  .senang-search-row-top input[type="text"]{
    max-width: 100% !important;
    width: 100% !important;
    height: 54px !important;
    margin: 0 0 18px 0 !important;
    padding: 0 18px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  .senang-search-row-bottom{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .senang-search-row-bottom select,
  .senang-search-row-bottom button{
    width: 100% !important;
    height: 54px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  .senang-search-row-bottom button{
    margin-top: 4px !important;
  }
}

/*加显示area在new-property-projects页面*/
.senang-project-area {
  font-size: 14px;
  color: #666;
  margin: 0 12px 8px;
}

.senang-project-location {
  font-size: 14px;
  color: #666;
  margin: 0 12px 8px;
}

.senang-project-category {
  margin: 0 12px 6px;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}