@media only screen and (max-width: 600px) {
    /* 手機版段落文字調整 */
    .entry-content p, .wp-block-paragraph {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* 價格對齊 */
    .woocommerce-Price-amount, .price {
        font-size: 16px !important;
        display: block !important;
        margin: 5px 0 !important;
    }

    /* 圖片和內容間距 */
    .wp-block-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    .entry-content {
        padding: 10px !important;
    }

    /* 按鈕寬度調整（如果未被隱藏則保留） */
    .wp-block-button .wp-block-button__link {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* 手機版固定容器右上角的關閉按鈕樣式 */
@media (max-width: 600px) {
  .mobile-close-btn {
      position: absolute;
      top: 5px;
      right: 5px;
      background: rgba(0,0,0,0.6);
      color: #fff;
      border: none;
      padding: 4px 10px;
      font-size: 20px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 10000;
      line-height: 1;
  }
  .mobile-close-btn:hover {
      background: rgba(0,0,0,0.85);
  }

  body.has-fixed-configurator {
      padding-top: 260px; /* 預留頂部空間 */
  }
}

/* 桌機/平板不顯示按鈕 */
@media (min-width: 601px) {
  .mobile-close-btn {
      display: none !important;
  }
  body.has-fixed-configurator {
      padding-top: 0 !important;
  }
}

/* Sticky image by Marc (保留原樣) */
@media (max-width: 660px) {
    body:not(.configurator_is_inline) .mkl_pc .mkl_pc_container .mkl_pc_viewer {
        position: sticky;
        top: 40px;
        bottom: auto;
        height: 250px;
        background: #FFF;
        z-index: 10;
        box-shadow: 0 5px 15px #00000024;
    }
    
    .mkl_pc .mkl_pc_container .mkl_pc_toolbar {
        top: 40px;
    }
}

/* 文字排版 - 保留標題隱藏 */
.wp-block-post-title {
    display: none;
}