/*
Theme Name: Astra Child
Theme URI: https://www.lmbeautytech.com/
Description: Child theme for Astra
Author: panpatricia09@gmail.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/*---------------------------------
  子主题自定义 CSS
---------------------------------*/

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 高宽比 */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 1000px; /* 视频最大宽度，可根据内容区调整 */
    margin: 0 auto;    /* 居中显示 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* 调整文章内容区最大宽度 */
.container, .site-content, .entry-content, .post-content {
    max-width: 1200px !important; /* 或根据你页面宽度调大 */
    width: 100% !important;
    margin: 0 auto;
}
/* 隐藏产品分类页标题 */
.archive.woocommerce .page-title {
    display: none;
}
/* WhatsApp 官方 Logo 悬浮按钮 */
.whatsapp-float {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
}

.whatsapp-float:hover {
  transform: translateY(-50%) scale(1.1);
}

@keyframes whatsapp-pulse {
  0% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.15); }
  100% { transform: translateY(-50%) scale(1); }
}
#tawkchat-minified {
    z-index:10 !important; /* WhatsApp 挂件 z-index=99998 */
}
@media (max-width: 781px) {
  .force-3-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
  }

  .force-3-columns > .wp-block-column {
    flex: none !important;
    width: auto !important;
  }
}


