/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 
 .member-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f8f8;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

.member-price-icon svg {
    flex-shrink: 0;
    color: #a52635;
}

.member-price-content {
    flex-grow: 1;
    min-width: 200px;
}

.member-price-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.member-price-desc {
    font-size: 15px;
    color: #555;
}

.member-price-actions {
    display: flex;
    align-items: center;
}

.member-price-btn {
    display: inline-flex;
    align-items: center;
    background-color: #a52635;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.member-price-btn:hover {
    background-color: #871f2b;
}

.member-price-box .member-price-btn .ct-icon{color: #fff !important;}



/*列表样式*/
.member-price-text-wrapper {
    display: inline-block;
}

.member-price-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f3f4f6;
    color: #a52635;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
}

.member-price-text-link:hover {
    background-color: #fff0f2;
    border-color: #fca5a5;
    color: #7f1d1d;
}

.member-price-text-link .lock-icon {
    stroke: currentColor;
}




body.single-product:not(.logged-in) form.cart,
body.single-product:not(.logged-in) .ct-woo-add-to-cart-button {
    display: none !important;
}



.eu-inquiry-buttons {
    margin-bottom: 1.5rem!important;;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inquiry-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    transition: all 0.25s ease;
    border-bottom: 1px solid #f1f5f9;
}

.inquiry-btn:hover {
    background: #f8fafc;
    transform: none;
    box-shadow: inset 4px 0 0 0 var(--btn-color);
}

/* 图标容器 */
.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 1rem;
    background: var(--btn-bg);
    color: white;
}

/* 动态颜色变量 */
.whatsapp-btn { --btn-color: #25D366; --btn-bg: #25D366; }
.email-btn    { --btn-color: #3182CE; --btn-bg: #3182CE; }
.form-btn     { --btn-color: #805AD5; --btn-bg: #805AD5; }

/* SVG 图标颜色 */
.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* 文字区域 */
.btn-content {
    flex: 1;
}

.btn-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1a202c;
}

.btn-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.btn-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.inquiry-btn:hover .btn-icon {
    transform: scale(1.1);
}


/* 呼吸动画关键帧 */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* 仅给 form-btn 加呼吸灯引导 */
.form-btn .btn-icon {
  position: relative;
  z-index: 1;
}

.form-btn .btn-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  background: var(--btn-bg);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ring 1.8s infinite;
}


/* 确保图标容器为定位元素 */
.btn-icon {
    position: relative;
}

/* 所有按钮的图标上显示红点 */
.inquiry-btn .btn-icon::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background-color: #e53e3e; /* 红色 */
    border-radius: 50%;
    box-shadow: 0 0 0 2px white; /* 白色描边，仿 App 通知角标 */
    z-index: 2;
}



/*登录弹窗设置宽度*/

/* Set modal width to 800px */
.ct-account-modal {
    width: 800px !important;
    max-width: 800px !important;
    margin: 0 auto; /* Center the modal */
}

/* Ensure form container adapts to modal width */
.ct-account-modal .ct-account-forms {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px; /* Adjust padding for comfort */
}

/* Style form fields */
.ct-account-form .input,
.ct-account-form select#purchase_purpose {
    width: 100% !important;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
}

/* Label styling */
.ct-account-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Custom dropdown arrow for select */
.ct-account-form select#purchase_purpose {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path d="M0 3L5 8L10 3H0Z"/></svg>') no-repeat right 10px center;
    background-size: 10px;
    padding-right: 30px;
    height: 40px; /* Match input height */
}

/* Responsive design for smaller screens */
@media (max-width: 850px) {
    .ct-account-modal {
        width: 90% !important;
        max-width: 90% !important;
    }
}





.contact-popup-overlay,.ct-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.contact-popup {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
    animation: popupSlide 0.35s ease-out;
    font-family: 'Segoe UI', sans-serif;
}

@keyframes popupSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-popup h3 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.close-popup {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #333;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.contact-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.icon-badge {
    position: relative;
    width: 42px;
    height: 42px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.6);
}

.icon-badge svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: red;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.2rem;
}

.contact-status {
    font-size: 0.8125rem;
    color: #718096;
}


.whatsapp-btn {
        --btn-color: #25D366;
    --btn-bg: #25D366;
    text-align: left;
    width: 100%;
    background: #fff;
   
    cursor: pointer;

}

.contact-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.contact-name {
    font-weight: bold;
    color: #1a202c;
}

.contact-status {
    font-size: 0.85rem;
    color: #4caf50;
}



/*技术参数*/
/* 描述标签页内的技术参数 */
.product-tech-specs-tab {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tech-specs-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 25px 0;
    position: relative;
}

.tech-specs-heading:after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #ddd;
    margin: 15px auto 0;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tech-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tech-spec-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;

}

.spec-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.spec-value {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .tech-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tech-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .product-tech-specs-tab {
        margin-bottom: 30px;
    }
}


/* --- 卡片基础 --- */
.ct-enhanced-reviews-swiper .swiper-wrapper { align-items: stretch; }
.ct-enhanced-reviews-swiper .swiper-slide { display: flex; height: auto; }

.ct-review-card-enhanced {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f7f8fa;
    border-radius: 16px;
   
    padding: 20px;
    
}

/* --- 顶部：头像/名字/星级 --- */
.ct-reviewer-info {
    display: flex;
    flex-direction: column; /* 改为垂直排列 */
    gap: 8px;
    margin-bottom: 10px;
}
.ct-reviewer-avatar { display: flex; align-items: center; gap: 10px; }
.ct-review-avatar { 
    width: 50px; 
    height: 50px; 
    border-radius: 12px; /* 圆角50px */
    object-fit: cover; 
}
.ct-reviewer-name { 
    font-weight: 700; 
    font-size: 16px;
    color: #222; 
}

/* 星级（Blocksy star字体） */
.ct-stars-rating .star-rating { --star-size: 14px; font-size: var(--star-size); }

/* --- 正文：多行截断并占满剩余空间 --- */
.ct-review-body { display: flex; flex-direction: column; flex: 1; }
.ct-review-text {
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    margin: 8px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 120px;
}

/* --- 评论图片：50x50 --- */
.ct-review-gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ct-review-gallery .ct-gallery-item {
    width: 50px !important; height: 50px !important; flex: 0 0 50px;
    border-radius: 8px; overflow: hidden; background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
}
.ct-review-gallery .ct-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- 底部：产品信息永远贴底 --- */
.ct-review-product-header {
    display: flex; align-items: center; gap: 14px;
    margin-top: auto; padding-top: 16px; border-top: 1px solid #e8e8e8; margin-top: 20px;
}
.ct-product-thumbnail { flex: 0 0 60px; border-radius: 8px; overflow: hidden; }
.ct-product-thumbnail img { width: 60px; height: 60px; object-fit: contain; display: block; }
.ct-product-meta { flex: 1; }
.ct-product-meta h4 {
    font-size: 16px;
    color: #1a1a1a; margin: 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ct-product-price { color: #ff6a00; font-weight: 700; font-size: 14px; margin-top: 4px; }

.ct-review-body .ct-reviewer-info .ct-reviewer-avatar .avatar{ border-radius:50px;}

/* --- 导航按钮：更简洁美观 --- */
.ct-enhanced-reviews-swiper .swiper-button-prev,
.ct-enhanced-reviews-swiper .swiper-button-next {
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background .2s ease, color .2s ease;
}
.ct-enhanced-reviews-swiper .swiper-button-prev::after,
.ct-enhanced-reviews-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}
.ct-enhanced-reviews-swiper .swiper-button-prev:hover,
.ct-enhanced-reviews-swiper .swiper-button-next:hover {
    background: #fff;
    color: #000;
}

/* --- 响应式：与截图一致的断点表现 --- */
@media (max-width: 1200px) {
    .ct-reviewer-name { font-size: 16px; }
    .ct-review-text { -webkit-line-clamp: 5; min-height: 100px; font-size: 15px; }
}
@media (max-width: 768px) {
    .ct-reviewer-avatar .ct-review-avatar { width: 40px; height: 40px; border-radius: 10px; }
    .ct-reviewer-name { font-size: 14px; }
    .ct-review-text { -webkit-line-clamp: 4; min-height: 80px; font-size: 14px; }
    .ct-product-thumbnail img { width: 52px; height: 52px; }
}

/* 保留空状态样式 */
.ct-no-reviews { text-align: center; color: #999; padding: 2rem; }









